Skip to content

Commit

Permalink
Reset desired column when not moving up/down. Re #12
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Apr 25, 2017
1 parent aceef91 commit a260712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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.14"
Version = "0.15.1"
)>]

[<assembly:AddinName ("Vim")>]
Expand Down
3 changes: 1 addition & 2 deletions XSVim/XSVim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ module Vim =
match command, vimState.lastAction with
// don't change desired column if we already started moving up or down
| MoveUpOrDown, [ MoveUpOrDown ] -> vimState
| MoveUpOrDown, _ -> { vimState with desiredColumn = editor.CaretColumn }
| _ -> vimState
| _ -> { vimState with desiredColumn = editor.CaretColumn }
editor.CaretOffset <- finish
newState

Expand Down

0 comments on commit a260712

Please sign in to comment.