Skip to content

Commit

Permalink
dj/dk/d2j etc should switch back to normal mode. Re #227
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Jun 7, 2018
1 parent 7a4585f commit 98ca157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion XSVim/Properties/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open System.Runtime.CompilerServices
[<AutoOpen>]
module AddinVersion =
[<Literal>]
let version = "0.60.3"
let version = "0.60.4"

[<assembly: AssemblyTitle("XSVim")>]
// The assembly version has the format {Major}.{Minor}.{Build}.{Revision}
Expand Down
4 changes: 2 additions & 2 deletions XSVim/XSVim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1465,13 +1465,13 @@ module Vim =
match numericArgument with
| Some lines -> lines
| None -> 1
[ switchMode VisualLineMode; getCommand (numberOfLines |> Some) Move Down; runOnce Delete SelectedText ]
[ switchMode VisualLineMode; getCommand (numberOfLines |> Some) Move Down; runOnce Delete SelectedText; switchMode NormalMode ]
| NormalMode, [ "d"; "k" ] ->
let numberOfLines =
match numericArgument with
| Some lines -> lines
| None -> 1
[ switchMode VisualLineMode; getCommand (numberOfLines |> Some) Move Up; runOnce Delete SelectedText ]
[ switchMode VisualLineMode; getCommand (numberOfLines |> Some) Move Up; runOnce Delete SelectedText; switchMode NormalMode ]
| NotInsertMode, [ (Action _) ; UnfinishedMovement ] -> wait
| NotInsertMode, [ UnfinishedMovement ] -> wait
| NormalMode, [ "d"; "g"; "g" ] -> [ runOnce DeleteWholeLines (Jump StartOfDocument)]
Expand Down

0 comments on commit 98ca157

Please sign in to comment.