diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-15 07:23:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 07:23:57 +0800 |
commit | 2685d27cd65ea255f9bf1fce44a355e235016212 (patch) | |
tree | 595915c396a1c0236a03cf76397597351b1f9860 /src/nvim/cmdexpand.c | |
parent | 4541c450812bb5252a63307772add143be1ee9c7 (diff) | |
download | rneovim-2685d27cd65ea255f9bf1fce44a355e235016212.tar.gz rneovim-2685d27cd65ea255f9bf1fce44a355e235016212.tar.bz2 rneovim-2685d27cd65ea255f9bf1fce44a355e235016212.zip |
vim-patch:9.0.0883: a silent mapping may cause dots on the command line (#21061)
Problem: A silent mapping may cause dots on the command line.
Solution: Don't show dots for completion if they are not going to be removed
again. (closes vim/vim#11501)
https://github.com/vim/vim/commit/698a00f55d60043d51b1c98cbbf3f9fd10badd2f
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/cmdexpand.c')
-rw-r--r-- | src/nvim/cmdexpand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c index ef742525da..e0bf562bb8 100644 --- a/src/nvim/cmdexpand.c +++ b/src/nvim/cmdexpand.c @@ -173,7 +173,9 @@ int nextwild(expand_T *xp, int type, int options, bool escape) return FAIL; } - if (!(ui_has(kUICmdline) || ui_has(kUIWildmenu))) { + // If cmd_silent is set then don't show the dots, because redrawcmd() below + // won't remove them. + if (!cmd_silent && !(ui_has(kUICmdline) || ui_has(kUIWildmenu))) { msg_puts("..."); // show that we are busy ui_flush(); } |