Skip to content

Commit

Permalink
fixes #832 (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
xconverge authored and johnfn committed Oct 5, 2016
1 parent 4602ae7 commit 16724d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mode/modeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ export class ModeHandler implements vscode.Disposable {
return;
}

if (!e.kind || e.kind === vscode.TextEditorSelectionChangeKind.Command) {
// e.kind can sometimes be undefined according to the docs for
// TextEditorSelectionChangeKind, so do not check for !e.kind
if (e.kind === vscode.TextEditorSelectionChangeKind.Command) {
return;
}

Expand Down

0 comments on commit 16724d9

Please sign in to comment.