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 a3830b6 commit ad58423Copy full SHA for ad58423
lib_src/misc/cells.ts
@@ -76,10 +76,15 @@ export function moveNext(editor: TextEditor | null | undefined) {
76
if (!editor) {
77
editor = atom.workspace.getActiveTextEditor()
78
}
79
- if (editor.getGrammar().scopeName.indexOf("source.julia") > -1) {
80
- return jlMoveNext(editor)
+ // TODO: getActiveTextEditor may return undefined
+ if (editor) {
81
+ if (editor.getGrammar().scopeName.indexOf("source.julia") > -1) {
82
+ return jlMoveNext(editor)
83
+ } else {
84
+ return weaveMoveNext(editor)
85
+ }
86
} else {
- return weaveMoveNext(editor)
87
+ console.error("No editor is given")
88
89
90
0 commit comments