]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.402 v7.3.402
authorBram Moolenaar <Bram@vim.org>
Fri, 20 Jan 2012 12:28:34 +0000 (13:28 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 20 Jan 2012 12:28:34 +0000 (13:28 +0100)
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.

src/quickfix.c
src/version.c

index 26eac7be59143640a825d5a12aded0a6f5207fbf..fdf245685f9126d4a5c98c9d613959a00c22c15e 100644 (file)
@@ -1842,8 +1842,10 @@ win_found:
 #endif
        if (print_message)
        {
-           /* Update the screen before showing the message */
-           update_topline_redraw();
+           /* Update the screen before showing the message, unless the screen
+            * scrolled up. */
+           if (!msg_scrolled)
+               update_topline_redraw();
            sprintf((char *)IObuff, _("(%d of %d)%s%s: "), qf_index,
                    qi->qf_lists[qi->qf_curlist].qf_count,
                    qf_ptr->qf_cleared ? _(" (line deleted)") : "",
index 4169c3ef05334913156ed9cff2f2b104ec0cdc8c..7aa17efe1692f8dbf51cd9b521e1105e7e1c1c8c 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    402,
 /**/
     401,
 /**/