comparison src/scriptfile.c @ 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 63cc54100ae4
children 7587d892c00c
comparison
equal deleted inserted replaced
20264:959191cc98cb 20265:d821c03b890c
226 // value. 226 // value.
227 rtp_copy = vim_strsave(path); 227 rtp_copy = vim_strsave(path);
228 buf = alloc(MAXPATHL); 228 buf = alloc(MAXPATHL);
229 if (buf != NULL && rtp_copy != NULL) 229 if (buf != NULL && rtp_copy != NULL)
230 { 230 {
231 if (p_verbose > 1 && name != NULL) 231 if (p_verbose > 10 && name != NULL)
232 { 232 {
233 verbose_enter(); 233 verbose_enter();
234 smsg(_("Searching for \"%s\" in \"%s\""), 234 smsg(_("Searching for \"%s\" in \"%s\""),
235 (char *)name, (char *)path); 235 (char *)name, (char *)path);
236 verbose_leave(); 236 verbose_leave();
274 { 274 {
275 // Append the pattern from "name" to buf[]. 275 // Append the pattern from "name" to buf[].
276 copy_option_part(&np, tail, (int)(MAXPATHL - (tail - buf)), 276 copy_option_part(&np, tail, (int)(MAXPATHL - (tail - buf)),
277 "\t "); 277 "\t ");
278 278
279 if (p_verbose > 2) 279 if (p_verbose > 10)
280 { 280 {
281 verbose_enter(); 281 verbose_enter();
282 smsg(_("Searching for \"%s\""), buf); 282 smsg(_("Searching for \"%s\""), buf);
283 verbose_leave(); 283 verbose_leave();
284 } 284 }