From 623cabfcbe8a0b6458f21fce534aaa41ec8ab56e Mon Sep 17 00:00:00 2001 From: nosami Date: Fri, 2 Jun 2017 20:41:24 +0100 Subject: [PATCH] Yanking always switches back to Normal Mode --- XSVim/Properties/AddinInfo.fs | 2 +- XSVim/XSVim.fs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/XSVim/Properties/AddinInfo.fs b/XSVim/Properties/AddinInfo.fs index fe540d3..aac82e8 100644 --- a/XSVim/Properties/AddinInfo.fs +++ b/XSVim/Properties/AddinInfo.fs @@ -5,7 +5,7 @@ open MonoDevelop [] [] diff --git a/XSVim/XSVim.fs b/XSVim/XSVim.fs index 745c2be..c5253b7 100755 --- a/XSVim/XSVim.fs +++ b/XSVim/XSVim.fs @@ -513,7 +513,7 @@ module Vim = match vimState.mode with | VisualModes -> editor.CaretOffset <- vimState.visualStartOffset | _ -> () - vimState + processCommands 1 vimState (runOnce (SwitchMode NormalMode) Nothing) false | Put Before -> if clipboard.EndsWith "\n" then editor.CaretOffset <- editor.GetLine(editor.CaretLine).Offset @@ -875,8 +875,8 @@ module Vim = | VisualModes, [ "c" ] -> [ run Change SelectedText ] | NormalMode, [ "~" ] -> [ run ToggleCase CurrentLocation ] | VisualModes, [ "~" ] -> [ run ToggleCase SelectedText; switchMode NormalMode ] - | VisualModes, [ "y" ] -> [ run Yank SelectedText; switchMode NormalMode ] - | VisualModes, [ "Y" ] -> [ run Yank WholeLineIncludingDelimiter; switchMode NormalMode ] + | VisualModes, [ "y" ] -> [ run Yank SelectedText ] + | VisualModes, [ "Y" ] -> [ run Yank WholeLineIncludingDelimiter ] | NotInsertMode, [ ">" ] -> [ dispatch EditCommands.IndentSelection ] | NotInsertMode, [ "<" ] -> [ dispatch EditCommands.UnIndentSelection ] | NotInsertMode, [ "" ] -> wait