Mercurial > emacs
comparison src/dispnew.c @ 54176:d1e478a807f4
(update_window): Update header line also if there are
no other changes in window (move code after set_cursor label).
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sat, 28 Feb 2004 01:02:16 +0000 |
parents | ccacbf7f76b2 |
children | 5acc1d864551 b44978264e1d |
comparison
equal
deleted
inserted
replaced
54175:faae5056606e | 54176:d1e478a807f4 |
---|---|
4133 /* We've scrolled the display. */ | 4133 /* We've scrolled the display. */ |
4134 force_p = 1; | 4134 force_p = 1; |
4135 changed_p = 1; | 4135 changed_p = 1; |
4136 } | 4136 } |
4137 | 4137 |
4138 /* Update the header line after scrolling because a new header | |
4139 line would otherwise overwrite lines at the top of the window | |
4140 that can be scrolled. */ | |
4141 if (header_line_row && header_line_row->enabled_p) | |
4142 { | |
4143 header_line_row->y = 0; | |
4144 update_window_line (w, 0, &mouse_face_overwritten_p); | |
4145 changed_p = 1; | |
4146 } | |
4147 | |
4148 /* Update the rest of the lines. */ | 4138 /* Update the rest of the lines. */ |
4149 for (n_updated = 0; row < end && (force_p || !input_pending); ++row) | 4139 for (n_updated = 0; row < end && (force_p || !input_pending); ++row) |
4150 if (row->enabled_p) | 4140 if (row->enabled_p) |
4151 { | 4141 { |
4152 int vpos = MATRIX_ROW_VPOS (row, desired_matrix); | 4142 int vpos = MATRIX_ROW_VPOS (row, desired_matrix); |
4178 | 4168 |
4179 /* Was display preempted? */ | 4169 /* Was display preempted? */ |
4180 paused_p = row < end; | 4170 paused_p = row < end; |
4181 | 4171 |
4182 set_cursor: | 4172 set_cursor: |
4173 | |
4174 /* Update the header line after scrolling because a new header | |
4175 line would otherwise overwrite lines at the top of the window | |
4176 that can be scrolled. */ | |
4177 if (header_line_row && header_line_row->enabled_p) | |
4178 { | |
4179 header_line_row->y = 0; | |
4180 update_window_line (w, 0, &mouse_face_overwritten_p); | |
4181 changed_p = 1; | |
4182 } | |
4183 | 4183 |
4184 /* Fix the appearance of overlapping/overlapped rows. */ | 4184 /* Fix the appearance of overlapping/overlapped rows. */ |
4185 if (!paused_p && !w->pseudo_window_p) | 4185 if (!paused_p && !w->pseudo_window_p) |
4186 { | 4186 { |
4187 if (changed_p && rif->fix_overlapping_area) | 4187 if (changed_p && rif->fix_overlapping_area) |