repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 359bef1f085514bfd0a846cfc5f4ae6b5ae8eb03: path_to: revision_to:
commit 359bef1f085514bfd0a846cfc5f4ae6b5ae8eb03 Author: Emanuele GiaquintaDate: Tue Nov 15 18:20:38 2011 +0000 do not move the selection when scrolling up and the selection is outside the scrolling region. diff --git a/src/screen.C b/src/screen.C
--- a/src/screen.C
+++ b/src/screen.C
@@ -684,7 +684,8 @@ rxvt_term::scr_scroll_text (int row1, int row2, int count) NOTHROW
}
// move and/or clear selection, if any
- if (selection.op && current_screen == selection.screen)
+ if (selection.op && current_screen == selection.screen
+ && selection.beg.row < row2)
{
selection.beg.row -= count;
selection.end.row -= count;
-----END OF PAGE-----