This commit is contained in:
Sean Kelly 2016-10-11 21:11:14 -07:00 committed by Grant Mathews
parent 6efdd3b20f
commit c845e04b73

View File

@ -496,9 +496,8 @@ export class ModeHandler implements vscode.Disposable {
return;
}
// 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) {
// Only handle mouse selections
if (e.kind !== vscode.TextEditorSelectionChangeKind.Mouse) {
return;
}