0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0688: output clobbered if setting 'verbose' to see shell commands

Problem:    Output clobbered if setting 'verbose' to see shell commands.
Solution:   Only output "Searching for" when 'verbose' is 11 or higher.
This commit is contained in:
Bram Moolenaar
2020-05-03 17:01:24 +02:00
parent 41d4299f26
commit 647a530b33
3 changed files with 6 additions and 2 deletions

View File

@@ -8323,9 +8323,11 @@ A jump table for the options with a short description can be found at |Q_op|.
Currently, these messages are given: Currently, these messages are given:
>= 1 When the viminfo file is read or written. >= 1 When the viminfo file is read or written.
>= 2 When a file is ":source"'ed. >= 2 When a file is ":source"'ed.
>= 4 Shell commands.
>= 5 Every searched tags file and include file. >= 5 Every searched tags file and include file.
>= 8 Files for which a group of autocommands is executed. >= 8 Files for which a group of autocommands is executed.
>= 9 Every executed autocommand. >= 9 Every executed autocommand.
>= 11 Finding items in a path
>= 12 Every executed function. >= 12 Every executed function.
>= 13 When an exception is thrown, caught, finished, or discarded. >= 13 When an exception is thrown, caught, finished, or discarded.
>= 14 Anything pending in a ":finally" clause. >= 14 Anything pending in a ":finally" clause.

View File

@@ -228,7 +228,7 @@ do_in_path(
buf = alloc(MAXPATHL); buf = alloc(MAXPATHL);
if (buf != NULL && rtp_copy != NULL) if (buf != NULL && rtp_copy != NULL)
{ {
if (p_verbose > 1 && name != NULL) if (p_verbose > 10 && name != NULL)
{ {
verbose_enter(); verbose_enter();
smsg(_("Searching for \"%s\" in \"%s\""), smsg(_("Searching for \"%s\" in \"%s\""),
@@ -276,7 +276,7 @@ do_in_path(
copy_option_part(&np, tail, (int)(MAXPATHL - (tail - buf)), copy_option_part(&np, tail, (int)(MAXPATHL - (tail - buf)),
"\t "); "\t ");
if (p_verbose > 2) if (p_verbose > 10)
{ {
verbose_enter(); verbose_enter();
smsg(_("Searching for \"%s\""), buf); smsg(_("Searching for \"%s\""), buf);

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
688,
/**/ /**/
687, 687,
/**/ /**/