Skip to content

Commit 16724d9

Browse files
xconvergejohnfn
authored andcommitted
fixes #832 (#837)
1 parent 4602ae7 commit 16724d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mode/modeHandler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,9 @@ export class ModeHandler implements vscode.Disposable {
460460
return;
461461
}
462462

463-
if (!e.kind || e.kind === vscode.TextEditorSelectionChangeKind.Command) {
463+
// e.kind can sometimes be undefined according to the docs for
464+
// TextEditorSelectionChangeKind, so do not check for !e.kind
465+
if (e.kind === vscode.TextEditorSelectionChangeKind.Command) {
464466
return;
465467
}
466468

0 commit comments

Comments
 (0)