summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0ffb6f6)
raw | patch | inline | side by side (parent: 0ffb6f6)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Sat, 17 Sep 2011 20:16:50 +0000 (22:16 +0200) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Sat, 17 Sep 2011 20:16:50 +0000 (22:16 +0200) |
The code now tries to keep as much as possible of the selection being
moved visible.
moved visible.
src/screen_queue.c | patch | blob | history |
diff --git a/src/screen_queue.c b/src/screen_queue.c
index 37a60500eea74a6006237af072d93bcfe68a8d76..335bb17265f27a636eb93be976cd29d660d5fa13 100644 (file)
--- a/src/screen_queue.c
+++ b/src/screen_queue.c
lw->selected--;
lw->range_base--;
+ if (lw->range_selection)
+ list_window_scroll_to(lw, lw->range_base);
+ list_window_scroll_to(lw, lw->selected);
+
screen_queue_save_selection();
return true;
lw->selected++;
lw->range_base++;
+ if (lw->range_selection)
+ list_window_scroll_to(lw, lw->range_base);
+ list_window_scroll_to(lw, lw->selected);
+
screen_queue_save_selection();
return true;