We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fa1709 commit 3b43432Copy full SHA for 3b43432
lib_src/misc/cells.ts
@@ -102,10 +102,14 @@ export function movePrev(editor: TextEditor | undefined | null) {
102
if (!editor) {
103
editor = atom.workspace.getActiveTextEditor()
104
}
105
- if (editor.getGrammar().scopeName.indexOf("source.weave") > -1) {
106
- return weaveMovePrev(editor)
+ if (editor) {
+ if (editor.getGrammar().scopeName.indexOf("source.weave") > -1) {
107
+ return weaveMovePrev(editor)
108
+ } else {
109
+ return jlMovePrev(editor)
110
+ }
111
} else {
- return jlMovePrev(editor)
112
+ console.error("No editor is given")
113
114
115
0 commit comments