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.
diff --git a/src/scriptfile.c b/src/scriptfile.c
index 0756116..155ab14 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -228,7 +228,7 @@
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 @@
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);