diff options
author | Raphael <glephunter@gmail.com> | 2023-12-27 15:18:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-27 15:18:22 +0800 |
commit | 382ea4d40282c3ed2e3e1f30b53f060e0b0df498 (patch) | |
tree | fbd1a2b86787f7001c58a7bdb1b5dab1a1940c95 /src | |
parent | c26dc1f77c792fe5cbefd578dc8d1e23c80d3688 (diff) | |
download | rneovim-382ea4d40282c3ed2e3e1f30b53f060e0b0df498.tar.gz rneovim-382ea4d40282c3ed2e3e1f30b53f060e0b0df498.tar.bz2 rneovim-382ea4d40282c3ed2e3e1f30b53f060e0b0df498.zip |
fix(inccommand): don't preview in Ex mode (#26587)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_getln.c | 1 |
1 files changed, 1 insertions, 0 deletions
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() |