aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-15 07:23:57 +0800
committerGitHub <noreply@github.com>2022-11-15 07:23:57 +0800
commit2685d27cd65ea255f9bf1fce44a355e235016212 (patch)
tree595915c396a1c0236a03cf76397597351b1f9860 /runtime
parent4541c450812bb5252a63307772add143be1ee9c7 (diff)
downloadrneovim-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 'runtime')
-rw-r--r--runtime/doc/map.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index 60cc915a4a..c4bacfd632 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -215,6 +215,9 @@ The search string will not be echoed when using this mapping. Messages from
the executed command are still given though. To shut them up too, add a
":silent" in the executed command: >
:map <silent> ,h :exe ":silent normal /Header\r"<CR>
+Note that the effect of a command might also be silenced, e.g., when the
+mapping selects another entry for command line completion it won't be
+displayed.
Prompts will still be given, e.g., for inputdialog().
Using "<silent>" for an abbreviation is possible, but will cause redrawing of
the command line to fail.