Patch 9.0.0883
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 #11501)
Files: runtime/doc/map.txt, src/cmdexpand.c
*** ../vim-9.0.0882/runtime/doc/map.txt 2022-10-19 13:06:58.032690097 +0100
--- runtime/doc/map.txt 2022-11-14 22:06:36.972179390 +0000
***************
*** 234,239 ****
--- 234,242 ----
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.
*** ../vim-9.0.0882/src/cmdexpand.c 2022-11-14 15:31:04.041587447 +0000
--- src/cmdexpand.c 2022-11-14 22:02:53.036035441 +0000
***************
*** 226,233 ****
return FAIL;
}
! msg_puts("..."); // show that we are busy
! out_flush();
i = (int)(xp->xp_pattern - ccline->cmdbuff);
xp->xp_pattern_len = ccline->cmdpos - i;
--- 226,238 ----
return FAIL;
}
! // If cmd_silent is set then don't show the dots, because redrawcmd()
below
! // won't remove them.
! if (!cmd_silent)
! {
! msg_puts("..."); // show that we are busy
! out_flush();
! }
i = (int)(xp->xp_pattern - ccline->cmdbuff);
xp->xp_pattern_len = ccline->cmdpos - i;
*** ../vim-9.0.0882/src/version.c 2022-11-14 20:52:11.277268383 +0000
--- src/version.c 2022-11-14 22:04:05.100081362 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 883,
/**/
--
I got a new desk stapler. It broke on the first desk I tried.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20221114220811.3FA821C0473%40moolenaar.net.