forked from VSCodeVim/Vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gj/gk so it maintains cursor position (VSCodeVim#3890)
Fix gj & gk motion commands so that they maintain column position when jumping across short lines. Fixes VSCodeVim#1323 . The previous fix (commit e14d23d) was somewhat naive as it conflated what should have been entirely separate classes. One set for moving the cursor up and down, and the other for moving it up and down while maintaining cursors position in wrapped lines. This conflation would probably be fine except that the former set of classes was in turn being used by the MoveUpFoldFix/MoveDownFoldFix classes. Digging through the commit history, the original confusion might have been introduced by commit 5a9f2f0. We now correctly separate Move(Up|Down)ByScreenLine classes from the Move(Up|Down)ByScreenLineMaintainDesiredColumn classes.
- Loading branch information
Showing
4 changed files
with
114 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters