mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
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:

committed by
Justin M. Keyes

parent
b92d6f490d
commit
7ae7da8fb9
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user