To: vim_dev@googlegroups.com Subject: Patch 9.0.0883 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 ,h :exe ":silent normal /Header\r" + 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 "" 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///