Skip to content

Commit

Permalink
Fix caret position after J. Fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed May 8, 2017
1 parent e8dd5e8 commit 2eabbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XSVim/XSVim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ module Vim =
| Undo -> EditActions.Undo editor; vimState
| Redo -> EditActions.Redo editor; vimState
| JoinLines ->
let lastColumn = editor.GetLine(editor.CaretLine).EndOffsetIncludingDelimiter
let lastColumn = editor.GetLine(editor.CaretLine).LengthIncludingDelimiter
EditActions.JoinLines editor
editor.CaretColumn <- lastColumn
vimState
Expand Down

0 comments on commit 2eabbb2

Please sign in to comment.