Skip to content

Commit efaee72

Browse files
committed
fix: select all command
1 parent a325cf4 commit efaee72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/commands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import fsOperation from "fileSystem";
2+
import { selectAll } from "@codemirror/commands";
23
import Sidebar from "components/sidebar";
34
import { TerminalManager } from "components/terminal";
45
import color from "dialogs/color";
@@ -340,8 +341,7 @@ export default {
340341
},
341342
"select-all"() {
342343
const { editor } = editorManager;
343-
editor.execCommand("selectall");
344-
editor.scrollToRow(Number.POSITIVE_INFINITY);
344+
selectAll(editor);
345345
},
346346
async rename(file) {
347347
file = file || editorManager.activeFile;

0 commit comments

Comments
 (0)