From: Bram Moolenaar Date: Fri, 29 Aug 2014 07:02:27 +0000 (+0200) Subject: updated for version 7.4.418 X-Git-Tag: v7.4.418 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26f08b06b681085e8f40b109871fe7ae2f3bd7c6;p=vim updated for version 7.4.418 Problem: When leaving ":append" the cursor shape is like in Insert mode. (Jacob Niehus) Solution: Do not have State set to INSERT when calling getline(). --- diff --git a/src/ex_cmds.c b/src/ex_cmds.c index df6700d64..2a81eb739 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -4011,11 +4011,19 @@ ex_append(eap) eap->nextcmd = p; } else + { + int save_State = State; + + /* Set State to avoid the cursor shape to be set to INSERT mode + * when getline() returns. */ + State = CMDLINE; theline = eap->getline( #ifdef FEAT_EVAL eap->cstack->cs_looplevel > 0 ? -1 : #endif NUL, eap->cookie, indent); + State = save_State; + } lines_left = Rows - 1; if (theline == NULL) break; diff --git a/src/version.c b/src/version.c index ee2598d8b..b2c3289c6 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 418, /**/ 417, /**/