Mercurial > vim
changeset 20265:d821c03b890c v8.2.0688
patch 8.2.0688: output clobbered if setting 'verbose' to see shell commands
Commit: https://github.com/vim/vim/commit/647a530b33d9d767f591159c24c62de48e57dad7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 3 17:01:24 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 03 May 2020 17:15:03 +0200 |
parents | 959191cc98cb |
children | cb107e572f1c |
files | runtime/doc/options.txt src/scriptfile.c src/version.c |
diffstat | 3 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -8323,9 +8323,11 @@ A jump table for the options with a shor 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.
--- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -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);