]> granicus.if.org Git - vim/commitdiff
patch 8.2.0688: output clobbered if setting 'verbose' to see shell commands v8.2.0688
authorBram Moolenaar <Bram@vim.org>
Sun, 3 May 2020 15:01:24 +0000 (17:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 3 May 2020 15:01:24 +0000 (17:01 +0200)
Problem:    Output clobbered if setting 'verbose' to see shell commands.
Solution:   Only output "Searching for" when 'verbose' is 11 or higher.

runtime/doc/options.txt
src/scriptfile.c
src/version.c

index baccd25d23b02eae09270605361bbf7e4d46d361..c29ff5ea406b1454f318b08b24d21fa9cf81664c 100644 (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:
        >= 1    When the viminfo file is read or written.
        >= 2    When a file is ":source"'ed.
+       >= 4    Shell commands.
        >= 5    Every searched tags file and include file.
        >= 8    Files for which a group of autocommands is executed.
        >= 9    Every executed autocommand.
+       >= 11   Finding items in a path
        >= 12   Every executed function.
        >= 13   When an exception is thrown, caught, finished, or discarded.
        >= 14   Anything pending in a ":finally" clause.
index 0756116b107e3787ff669ceaf4e60df659e6d479..155ab14bb7e8a8753d62ff7780f36aa1d2d49c2d 100644 (file)
@@ -228,7 +228,7 @@ do_in_path(
     buf = alloc(MAXPATHL);
     if (buf != NULL && rtp_copy != NULL)
     {
-       if (p_verbose > 1 && name != NULL)
+       if (p_verbose > 10 && name != NULL)
        {
            verbose_enter();
            smsg(_("Searching for \"%s\" in \"%s\""),
@@ -276,7 +276,7 @@ do_in_path(
                    copy_option_part(&np, tail, (int)(MAXPATHL - (tail - buf)),
                                                                       "\t ");
 
-                   if (p_verbose > 2)
+                   if (p_verbose > 10)
                    {
                        verbose_enter();
                        smsg(_("Searching for \"%s\""), buf);
index 74fabce67503393f2d4136c0ae4365963ac2450d..fcc897a0f5104ac6a2703dc31a5176430f94616e 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    688,
 /**/
     687,
 /**/