aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2018-06-21 17:36:26 +0800
committerJustin M. Keyes <justinkz@gmail.com>2018-06-21 11:36:26 +0200
commit7ae7da8fb9ab2e23ffc19000798ae27a2dee4e87 (patch)
treefe8c991ec9bbb4f3c72cd3a3b53d08e3540d5354 /src/nvim/ex_getln.c
parentb92d6f490d93f788f018d7c8417d68d2d3de1a95 (diff)
downloadrneovim-7ae7da8fb9ab2e23ffc19000798ae27a2dee4e87.tar.gz
rneovim-7ae7da8fb9ab2e23ffc19000798ae27a2dee4e87.tar.bz2
rneovim-7ae7da8fb9ab2e23ffc19000798ae27a2dee4e87.zip
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. https://github.com/vim/vim/commit/f2405ed2321da4a879fe0b0703af780fc0432c63
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 774007c66e..3372edb8fd 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -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;