From d22017fe8a9871425aa765029091bac259468d2e Mon Sep 17 00:00:00 2001
From: Emmanuel Raviart <emmanuel@raviart.com>
Date: Sat, 31 Jul 2021 14:43:39 +0200
Subject: [PATCH] Change current index when editing a test case.

---
 src/routes/index.svelte | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/routes/index.svelte b/src/routes/index.svelte
index 9ffa0e826..5c8363b4e 100644
--- a/src/routes/index.svelte
+++ b/src/routes/index.svelte
@@ -196,6 +196,7 @@
             mode: "test_case",
             testCaseIndex: parseInt(match[1]),
           }
+          $testCaseIndex = editionMode.testCaseIndex
           return
         }
       }
@@ -210,6 +211,7 @@
             testCaseIndex: parseInt(match[1]),
             variableName: match[2],
           }
+          $testCaseIndex = editionMode.testCaseIndex
           return
         }
       }
-- 
GitLab