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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines