vim-patch:8.0.0468: g< after aborting an Ex command (#7941)

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.
f2405ed232
This commit is contained in:
KunMing Xie
2018-06-21 17:36:26 +08:00
committed by Justin M. Keyes
parent b92d6f490d
commit 7ae7da8fb9
3 changed files with 63 additions and 31 deletions

View File

@@ -273,6 +273,7 @@ static uint8_t *command_line_enter(int firstc, long count, int indent)
ccline.last_colors = (ColoredCmdline){ .cmdbuff = NULL,
.colors = KV_INITIAL_VALUE };
sb_text_start_cmdline();
// autoindent for :insert and :append
if (s->firstc <= 0) {
@@ -480,6 +481,8 @@ static uint8_t *command_line_enter(int firstc, long count, int indent)
xfree(ccline.last_colors.cmdbuff);
kv_destroy(ccline.last_colors.colors);
sb_text_end_cmdline();
{
char_u *p = ccline.cmdbuff;