diff options
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 3 |
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; |