Skip to content

Commit a3830b6

Browse files
committed
moveNext editor may be null or undefined
1 parent 0f91e5c commit a3830b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib_src/misc/cells.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ function jlGet(editor: TextEditor) {
7272
return [res]
7373
}
7474

75-
export function moveNext(editor: TextEditor) {
76-
if (editor == null) {
75+
export function moveNext(editor: TextEditor | null | undefined) {
76+
if (!editor) {
7777
editor = atom.workspace.getActiveTextEditor()
7878
}
7979
if (editor.getGrammar().scopeName.indexOf("source.julia") > -1) {

0 commit comments

Comments
 (0)