Skip to content

Commit

Permalink
Yanking always switches back to Normal Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Jun 2, 2017
1 parent 02a879b commit 623cabf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion XSVim/Properties/AddinInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open MonoDevelop
[<assembly:Addin (
"XSVim",
Namespace = "XSVim",
Version = "0.24.1"
Version = "0.24.2"
)>]

[<assembly:AddinName ("Vim")>]
Expand Down
6 changes: 3 additions & 3 deletions XSVim/XSVim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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, [ "<C-w>" ] -> wait
Expand Down

0 comments on commit 623cabf

Please sign in to comment.