From: Bram Moolenaar Date: Wed, 14 Sep 2011 12:33:51 +0000 (+0200) Subject: updated for version 7.3.305 X-Git-Tag: v7.3.305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52af96527c914599334e3c2543ebb5ba1e37bbbe;p=vim updated for version 7.3.305 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) --- diff --git a/src/eval.c b/src/eval.c index e9ab0359a..f66fb1b57 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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; diff --git a/src/version.c b/src/version.c index 77a1e2a36..f21e33277 100644 --- a/src/version.c +++ b/src/version.c @@ -709,6 +709,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 305, /**/ 304, /**/