1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-03-11 13:41:43 +00:00

undoStep() CM5 -> CM6

This commit is contained in:
Fred Sauer
2026-02-18 19:39:34 -08:00
parent 0509578975
commit c540c0912d

View File

@@ -1,5 +1,5 @@
import { closeBrackets, deleteBracketPair } from "@codemirror/autocomplete";
import { defaultKeymap, history, historyKeymap, indentWithTab } from "@codemirror/commands";
import { defaultKeymap, history, historyKeymap, indentWithTab, undo } from "@codemirror/commands";
import { cpp } from "@codemirror/lang-cpp";
import { markdown } from "@codemirror/lang-markdown";
import { bracketMatching, foldGutter, indentOnInput, indentUnit } from "@codemirror/language";
@@ -535,7 +535,7 @@ export class SourceEditor implements ProjectView {
}
undoStep() {
this.editor.execCommand('undo');
undo(this.editor);
}
toggleBreakpoint(lineno: number) {