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

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.248 by root, Sun Jan 8 00:07:18 2006 UTC vs.
Revision 1.250 by root, Sun Jan 8 06:35:23 2006 UTC

973 if (want_refresh) 973 if (want_refresh)
974 { 974 {
975 if (SHOULD_INVOKE (HOOK_LINE_UPDATE)) 975 if (SHOULD_INVOKE (HOOK_LINE_UPDATE))
976 { 976 {
977 int row = -view_start; 977 int row = -view_start;
978 int end_row = row + nrow;
978 979
979 while (row > -nsaved && ROW (row - 1).is_longer ()) 980 while (row > -nsaved && ROW (row - 1).is_longer ())
980 --row; 981 --row;
981 982
982 while (row < -view_start + nrow) 983 do
983 { 984 {
984 int start_row = row; 985 int start_row = row;
985 line_t *l; 986 line_t *l;
986 987
987 do 988 do
988 { 989 {
989 l = &ROW (row); 990 l = &ROW (row++);
990 991
991 if (!(l->f & LINE_FILTERED)) 992 if (!(l->f & LINE_FILTERED))
992 { 993 {
993 // line not filtered, mark it as filtered 994 // line not filtered, mark it as filtered
994 l->f |= LINE_FILTERED; 995 l->f |= LINE_FILTERED;
995 while (l->is_longer ()) 996 while (l->is_longer ())
996 { 997 {
997 l = &ROW (++row); 998 l = &ROW (row++);
998 l->f |= LINE_FILTERED; 999 l->f |= LINE_FILTERED;
999 } 1000 }
1000 1001
1001 // and filter it 1002 // and filter it
1002 HOOK_INVOKE ((this, HOOK_LINE_UPDATE, DT_INT, start_row, DT_END)); 1003 HOOK_INVOKE ((this, HOOK_LINE_UPDATE, DT_INT, start_row, DT_END));
1003 1004
1004 break; 1005 break;
1005 } 1006 }
1006 } 1007 }
1007 while (l->is_longer ()); 1008 while (l->is_longer () && row < end_row);
1008
1009 row++;
1010 } 1009 }
1011 1010 while (++row < end_row);
1012 } 1011 }
1013 1012
1014 scr_refresh (refresh_type); 1013 scr_refresh (refresh_type);
1015 scrollbar_show (1); 1014 scrollbar_show (1);
1016#ifdef USE_XIM 1015#ifdef USE_XIM
4155 /* extra handling for values with state unkept */ 4154 /* extra handling for values with state unkept */
4156 switch (arg[i]) 4155 switch (arg[i])
4157 { 4156 {
4158#if ENABLE_STYLES 4157#if ENABLE_STYLES
4159 case 1021: 4158 case 1021:
4160 if (mode) 4159 set_option (Opt_intensityStyles, mode);
4161 SET_OPTION (Opt_intensityStyles);
4162 else
4163 CLR_OPTION (Opt_intensityStyles);
4164 4160
4165 scr_touch (true); 4161 scr_touch (true);
4166 break; 4162 break;
4167#endif 4163#endif
4168 case 1048: /* alternative cursor save */ 4164 case 1048: /* alternative cursor save */
4190 case 3: /* 80/132 */ 4186 case 3: /* 80/132 */
4191 if (priv_modes & PrivMode_132OK) 4187 if (priv_modes & PrivMode_132OK)
4192 set_widthheight (((state ? 132 : 80) * fwidth), height); 4188 set_widthheight (((state ? 132 : 80) * fwidth), height);
4193 break; 4189 break;
4194 case 4: /* smooth scrolling */ 4190 case 4: /* smooth scrolling */
4195 if (!state) 4191 set_option (Opt_jumpScroll, !state);
4196 SET_OPTION (Opt_jumpScroll);
4197 else
4198 CLR_OPTION (Opt_jumpScroll);
4199 break; 4192 break;
4200 case 5: /* reverse video */ 4193 case 5: /* reverse video */
4201 scr_rvideo_mode (state); 4194 scr_rvideo_mode (state);
4202 break; 4195 break;
4203 case 6: /* relative/absolute origins */ 4196 case 6: /* relative/absolute origins */
4244#if 0 4237#if 0
4245 case 1001: 4238 case 1001:
4246 break; /* X11 mouse highlighting */ 4239 break; /* X11 mouse highlighting */
4247#endif 4240#endif
4248 case 1010: /* scroll to bottom on TTY output inhibit */ 4241 case 1010: /* scroll to bottom on TTY output inhibit */
4249 if (!state) 4242 set_option (Opt_scrollTtyOutput, !state);
4250 SET_OPTION (Opt_scrollTtyOutput);
4251 else
4252 CLR_OPTION (Opt_scrollTtyOutput);
4253 break; 4243 break;
4254 case 1011: /* scroll to bottom on key press */ 4244 case 1011: /* scroll to bottom on key press */
4255 if (state) 4245 set_option (Opt_scrollTtyKeypress, state);
4256 SET_OPTION (Opt_scrollTtyKeypress);
4257 else
4258 CLR_OPTION (Opt_scrollTtyKeypress);
4259 break; 4246 break;
4260 case 1047: /* secondary screen w/ clearing last */ 4247 case 1047: /* secondary screen w/ clearing last */
4261 if (OPTION (Opt_secondaryScreen)) 4248 if (OPTION (Opt_secondaryScreen))
4262 if (current_screen != PRIMARY) 4249 if (current_screen != PRIMARY)
4263 scr_erase_screen (2); 4250 scr_erase_screen (2);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines