repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 359bef1f085514bfd0a846cfc5f4ae6b5ae8eb03:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 359bef1f085514bfd0a846cfc5f4ae6b5ae8eb03
Author: Emanuele Giaquinta 
Date:   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
index 9a4934cafe19e445500bcee26965e980f58fc4ba..
index ..8e529be7a089ead22dbe61c85f013339d8e43b54 100644
--- 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-----