From 382ea4d40282c3ed2e3e1f30b53f060e0b0df498 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 27 Dec 2023 15:18:22 +0800 Subject: fix(inccommand): don't preview in Ex mode (#26587) --- src/nvim/ex_getln.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 61e11636ae..84e527b08c 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -2633,6 +2633,7 @@ static int command_line_changed(CommandLineState *s) if (s->firstc == ':' && current_sctx.sc_sid == 0 // only if interactive && *p_icm != NUL // 'inccommand' is set + && !exmode_active // not in ex mode && curbuf->b_p_ma // buffer is modifiable && cmdline_star == 0 // not typing a password && !vpeekc_any() -- cgit