*** empty log message ***
authorroot <root>
Fri, 17 Feb 2006 14:30:51 +0000 (14:30 +0000)
committerroot <root>
Fri, 17 Feb 2006 14:30:51 +0000 (14:30 +0000)
Changes
src/screen.C

diff --git a/Changes b/Changes
index a1ee51cc941d5d0b19b71fd9c560817114a3adf4..1fd55da646e3da74d0d35d49f7527f26c2ae08e6 100644 (file)
--- a/Changes
+++ b/Changes
@@ -21,6 +21,11 @@ DUMB: support tex fonts
         - modified XIM according to a patch sent by Takano Akio that sets
           the preedit rectangle for OverTheSpot, which helps some input methods
           to correctly position their preedit window.
+        - un-optimise the line clearing on newly scrolled-in lines a bit: the
+          former reasoning was that any fg colour on default bg looks the same
+          in empts spaces, but thats not true when reversing (e.g. selection),
+          so also check for matching fg colours. This fixes the problem where
+          selecting newly scrolled-in lines would exhibit wrong colours.
 
 7.6  Fri Feb 10 08:52:36 CET 2006
        - changed interpretation of [alpha] colour prefix.
index 0d6d5245d5bb65f4a9a20adc1570835abf254702..89c8da42077e107dca21c8c7047dd433ed8d20e6 100644 (file)
@@ -647,7 +647,7 @@ rxvt_term::scr_scroll_text (int row1, int row2, int count) NOTHROW
 
           // optimize if already cleared, can be significant on slow machines
           // could be rolled into scr_blank_screen_mem
-          if (l.r && l.l < ncol - 1 && !((l.r[l.l + 1] ^ rstyle) & RS_bgMask))
+          if (l.r && l.l < ncol - 1 && !((l.r[l.l + 1] ^ rstyle) & (RS_fgMask | RS_bgMask)))
             {
               scr_blank_line (l, 0, l.l, rstyle);
               l.l = 0;