vim-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.
647a530b33
This commit is contained in:
Jan Edmund Lazo 2020-05-03 13:35:10 -04:00
parent 5a0744e446
commit 88f4650114
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
2 changed files with 4 additions and 2 deletions

View File

@ -6516,9 +6516,11 @@ A jump table for the options with a short description can be found at |Q_op|.
>= 1 When the shada file is read or written. >= 1 When the shada file is read or written.
>= 2 When a file is ":source"'ed. >= 2 When a file is ":source"'ed.
>= 3 UI info, terminal capabilities >= 3 UI info, terminal capabilities
>= 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

@ -2394,7 +2394,7 @@ int do_in_path(char_u *path, char_u *name, int flags,
char_u *rtp_copy = vim_strsave(path); char_u *rtp_copy = vim_strsave(path);
char_u *buf = xmallocz(MAXPATHL); char_u *buf = xmallocz(MAXPATHL);
{ {
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\""),
(char *)name, (char *)path); (char *)name, (char *)path);
@ -2436,7 +2436,7 @@ int do_in_path(char_u *path, char_u *name, int flags,
copy_option_part(&np, tail, (size_t)(MAXPATHL - (tail - buf)), copy_option_part(&np, tail, (size_t)(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);
verbose_leave(); verbose_leave();