author | Jeffrey Middleton <jefromi@gmail.com> | |
Tue, 3 Mar 2009 22:15:19 +0000 (23:15 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Tue, 3 Mar 2009 22:15:19 +0000 (23:15 +0100) | ||
commit | 966fff945d6662440fc87580d6e04b91575c684b | |
tree | ba7d3e17f7223d7de96a754d9e32a1106728167a | tree | snapshot |
parent | 152e021619f3791d3c87a03a76625f3563413529 | commit | diff |
list_window: Tweaked visual mode behavior
Tweaked visual mode behavior so that the start of a visual selection is
always one end of it when making large movements (page up/down, H/M/L,
home/end). To clarify, suppose you start at the middle of the screen,
in visual mode, then:
(1) get to the bottom with j
(2) go to the top with page up
(3) go back to one above middle with j
(4) j once more
Previously, the resulting selection would be (1) middle to bottom, (2)
top to bottom, (3) one above middle to bottom, and (4) middle only.
With the change, we will get the intuitive (1) middle to bottom, (2) top
to middle, (3) one above middle to middle, and (4) middle only.
Tweaked visual mode behavior so that the start of a visual selection is
always one end of it when making large movements (page up/down, H/M/L,
home/end). To clarify, suppose you start at the middle of the screen,
in visual mode, then:
(1) get to the bottom with j
(2) go to the top with page up
(3) go back to one above middle with j
(4) j once more
Previously, the resulting selection would be (1) middle to bottom, (2)
top to bottom, (3) one above middle to bottom, and (4) middle only.
With the change, we will get the intuitive (1) middle to bottom, (2) top
to middle, (3) one above middle to middle, and (4) middle only.
src/list_window.c | diff | blob | history |