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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user