vim-patch:8.2.0841: 'verbose' value 16 causes duplicate output

Problem:    'verbose' value 16 causes duplicate output.
Solution:   Combine levels 15 and 16 into one message. (Christian Brabandt,
            closes vim/vim#6153)
823654bc06
This commit is contained in:
Jan Edmund Lazo
2020-10-02 01:22:30 -04:00
parent 970d6ee0d1
commit 86ab4a1cb4
4 changed files with 37 additions and 6 deletions

View File

@@ -588,7 +588,7 @@ int do_cmdline(char_u *cmdline, LineGetter fgetline,
}
}
if (p_verbose >= 15 && sourcing_name != NULL) {
if ((p_verbose >= 15 && sourcing_name != NULL) || p_verbose >= 16) {
msg_verbose_cmd(sourcing_lnum, cmdline_copy);
}
@@ -1281,10 +1281,6 @@ static char_u * do_one_cmd(char_u **cmdlinep,
goto doend;
}
if (p_verbose >= 16) {
msg_verbose_cmd(0, *cmdlinep);
}
// 1. Skip comment lines and leading white space and colons.
// 2. Handle command modifiers.