diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 3de7204fde..f3ae3a5e5d 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1389,6 +1389,7 @@ static int command_line_handle_key(CommandLineState *s) } } } + ccline.special_char = NUL; redrawcmd(); return command_line_changed(s); diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua index 121e71c3c2..45808b3b1b 100644 --- a/test/functional/ui/cmdline_highlight_spec.lua +++ b/test/functional/ui/cmdline_highlight_spec.lua @@ -983,7 +983,7 @@ describe('Expressions coloring support', function() {EOB:~ }| {EOB:~ }| {EOB:~ }| - ={SQ:"}{SB:}{SQ:"}{E:"}{SB:foo}{E:"}^" | + ={SQ:"}{SB:}{SQ:"}{E:"}{SB:foo}{E:"}^ | ]]) end) end)