Skip to content

Commit b7e2a46

Browse files
authored
fix: codemirror scroll behaviour (#304)
* fix: codemirror scroll behaviour * Revert "fix: codemirror scroll behaviour" This reverts commit c94475d. * refactor
1 parent d33cd89 commit b7e2a46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/routes/tutorial/[slug]/Editor.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@
5151
5252
$: reset($files);
5353
54+
$: select_state($selected_name);
55+
5456
$: if (editor_view) {
55-
select_state($selected_name);
5657
5758
if ($selected_name) {
5859
const current_warnings = $warnings[$selected_name];

0 commit comments

Comments
 (0)