From 1a9c61ffe126d4a0893ef63d2d8ff75eccedfc71 Mon Sep 17 00:00:00 2001 From: xconverge Date: Tue, 11 Oct 2016 21:05:40 -0700 Subject: [PATCH] fixes #882 --- src/mode/modeHandler.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mode/modeHandler.ts b/src/mode/modeHandler.ts index b0019d607b1..6df31cada2e 100644 --- a/src/mode/modeHandler.ts +++ b/src/mode/modeHandler.ts @@ -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; }