mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
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().
This commit is contained in:
parent
285ed7e049
commit
26f08b06b6
@ -4011,11 +4011,19 @@ ex_append(eap)
|
|||||||
eap->nextcmd = p;
|
eap->nextcmd = p;
|
||||||
}
|
}
|
||||||
else
|
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(
|
theline = eap->getline(
|
||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
eap->cstack->cs_looplevel > 0 ? -1 :
|
eap->cstack->cs_looplevel > 0 ? -1 :
|
||||||
#endif
|
#endif
|
||||||
NUL, eap->cookie, indent);
|
NUL, eap->cookie, indent);
|
||||||
|
State = save_State;
|
||||||
|
}
|
||||||
lines_left = Rows - 1;
|
lines_left = Rows - 1;
|
||||||
if (theline == NULL)
|
if (theline == NULL)
|
||||||
break;
|
break;
|
||||||
|
@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
418,
|
||||||
/**/
|
/**/
|
||||||
417,
|
417,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user