0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.3.402

Problem:    When jumping to the first error a line of the buffer is sometimes
            redrawn on top of the list of errors.
Solution:   Do not call update_topline_redraw() if the display was scrolled
            up.
This commit is contained in:
Bram Moolenaar 2012-01-20 13:28:34 +01:00
parent 309cbc3840
commit 8f55d103db
2 changed files with 6 additions and 2 deletions

View File

@ -1842,8 +1842,10 @@ win_found:
#endif #endif
if (print_message) if (print_message)
{ {
/* Update the screen before showing the message */ /* Update the screen before showing the message, unless the screen
update_topline_redraw(); * scrolled up. */
if (!msg_scrolled)
update_topline_redraw();
sprintf((char *)IObuff, _("(%d of %d)%s%s: "), qf_index, sprintf((char *)IObuff, _("(%d of %d)%s%s: "), qf_index,
qi->qf_lists[qi->qf_curlist].qf_count, qi->qf_lists[qi->qf_curlist].qf_count,
qf_ptr->qf_cleared ? _(" (line deleted)") : "", qf_ptr->qf_cleared ? _(" (line deleted)") : "",

View File

@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
402,
/**/ /**/
401, 401,
/**/ /**/