diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-16 19:58:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-16 19:58:25 +0100 |
commit | f2405ed2321da4a879fe0b0703af780fc0432c63 (patch) | |
tree | 0cc02db45ec63fd64c3d75e5d5ab2c2a24e51a60 /src/ex_getln.c | |
parent | 57002ad70c4c32f3afefec24994a974cf3eef3ad (diff) | |
download | vim-f2405ed2321da4a879fe0b0703af780fc0432c63.zip |
patch 8.0.0468: after aborting an Ex command g< does not work
Problem: After aborting an Ex command g< does not work. (Marcin
Szamotulski)
Solution: Postpone clearing scrollback messages to until the command line
has been entered. Also fix that the screen isn't redrawn if after
g< the command line is cancelled.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index e96f5b899..a3cac7262 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -258,6 +258,7 @@ getcmdline( return NULL; /* out of memory */ ccline.cmdlen = ccline.cmdpos = 0; ccline.cmdbuff[0] = NUL; + sb_text_start_cmdline(); /* autoindent for :insert and :append */ if (firstc <= 0) @@ -2083,6 +2084,7 @@ returncmd: #ifdef CURSOR_SHAPE ui_cursor_shape(); /* may show different cursor shape */ #endif + sb_text_end_cmdline(); { char_u *p = ccline.cmdbuff; |