Skip to content

Commit 5fa1709

Browse files
committed
movePrev editor may be null or undefined
1 parent ad58423 commit 5fa1709

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
@@ -98,8 +98,8 @@ function jlMoveNext(editor: TextEditor) {
9898
])
9999
}
100100

101-
export function movePrev(editor: TextEditor) {
102-
if (editor == null) {
101+
export function movePrev(editor: TextEditor | undefined | null) {
102+
if (!editor) {
103103
editor = atom.workspace.getActiveTextEditor()
104104
}
105105
if (editor.getGrammar().scopeName.indexOf("source.weave") > -1) {

0 commit comments

Comments
 (0)