]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.305 v7.3.305
authorBram Moolenaar <Bram@vim.org>
Wed, 14 Sep 2011 12:33:51 +0000 (14:33 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 14 Sep 2011 12:33:51 +0000 (14:33 +0200)
Problem:    Auto-loading a function while editing the command line causes
            scrolling up the display.
Solution:   Don't set msg_scroll when defining a function and the user is not
            typing. (Yasuhiro Matsumoto)

src/eval.c
src/version.c

index e9ab0359a8832c417cd634a27e14404a510cf443..f66fb1b57e08d2a35a0bc0b77bb5976a561ed30f 100644 (file)
@@ -20786,7 +20786,8 @@ ex_function(eap)
     nesting = 0;
     for (;;)
     {
-       msg_scroll = TRUE;
+       if (KeyTyped)
+           msg_scroll = TRUE;
        need_wait_return = FALSE;
        sourcing_lnum_off = sourcing_lnum;
 
index 77a1e2a36e8c48d76e9f58d1f9198f533a15d1c7..f21e332774a013b49f9e2c77f64bfe358f46de08 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    305,
 /**/
     304,
 /**/