ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/screen.C
(Generate patch)

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.260 by root, Sat Feb 18 15:24:39 2006 UTC vs.
Revision 1.261 by root, Sat Feb 18 15:44:26 2006 UTC

2106 if (!display->is_local 2106 if (!display->is_local
2107 && refresh_type == FAST_REFRESH && num_scr_allow && num_scr 2107 && refresh_type == FAST_REFRESH && num_scr_allow && num_scr
2108 && abs (num_scr) < nrow && !have_bg) 2108 && abs (num_scr) < nrow && !have_bg)
2109 { 2109 {
2110 int16_t nits; 2110 int16_t nits;
2111 int i = num_scr;
2111 int j; 2112 int j;
2112 int len, wlen; 2113 int len, wlen;
2113 dLocal (int, num_scr); 2114 dLocal (int, num_scr);
2114 2115
2115 j = nrow; 2116 j = nrow;
2116 wlen = len = -1; 2117 wlen = len = -1;
2117 row = i > 0 ? 0 : j - 1; 2118 row = i > 0 ? 0 : j - 1;
2119
2118 for (; j-- >= 0; row += (i > 0 ? 1 : -1)) 2120 for (; j-- >= 0; row += (i > 0 ? 1 : -1))
2119 { 2121 {
2120 if (row + i >= 0 && row + i < nrow && row + i != ocrow) 2122 if (row + i >= 0 && row + i < nrow && row + i != ocrow)
2121 { 2123 {
2122 line_t s = ROW(view_start + row); 2124 line_t s = ROW(view_start + row);
2143 wlen = row; 2145 wlen = row;
2144 continue; 2146 continue;
2145 } 2147 }
2146 } 2148 }
2147 2149
2148 if (len != -1) 2150 if (len >= 0)
2149 { 2151 {
2150 /* also comes here at end if needed because of >= above */ 2152 /* also comes here at end if needed because of >= above */
2151 if (wlen < len) 2153 if (wlen < len)
2152 ::swap (wlen, len); 2154 ::swap (wlen, len);
2153 2155

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines