Mercurial > vim
comparison src/ex_docmd.c @ 20575:501b72481d0a v8.2.0841
patch 8.2.0841: 'verbose' value 16 causes duplicate output
Commit: https://github.com/vim/vim/commit/823654bc06c847af20967d41db32d592aba416cb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 29 23:03:09 2020 +0200
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 #6153)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 29 May 2020 23:15:03 +0200 |
parents | 9f921ba86d05 |
children | d571231175b4 |
comparison
equal
deleted
inserted
replaced
20574:856b79787807 | 20575:501b72481d0a |
---|---|
965 ++RedrawingDisabled; | 965 ++RedrawingDisabled; |
966 did_inc = TRUE; | 966 did_inc = TRUE; |
967 } | 967 } |
968 } | 968 } |
969 | 969 |
970 if (p_verbose >= 15 && SOURCING_NAME != NULL) | 970 if ((p_verbose >= 15 && SOURCING_NAME != NULL) || p_verbose >= 16) |
971 msg_verbose_cmd(SOURCING_LNUM, cmdline_copy); | 971 msg_verbose_cmd(SOURCING_LNUM, cmdline_copy); |
972 | 972 |
973 /* | 973 /* |
974 * 2. Execute one '|' separated command. | 974 * 2. Execute one '|' separated command. |
975 * do_one_cmd() will return NULL if there is no trailing '|'. | 975 * do_one_cmd() will return NULL if there is no trailing '|'. |
1688 save_cmdmod = cmdmod; | 1688 save_cmdmod = cmdmod; |
1689 | 1689 |
1690 // "#!anything" is handled like a comment. | 1690 // "#!anything" is handled like a comment. |
1691 if ((*cmdlinep)[0] == '#' && (*cmdlinep)[1] == '!') | 1691 if ((*cmdlinep)[0] == '#' && (*cmdlinep)[1] == '!') |
1692 goto doend; | 1692 goto doend; |
1693 | |
1694 if (p_verbose >= 16) | |
1695 msg_verbose_cmd(0, *cmdlinep); | |
1696 | 1693 |
1697 /* | 1694 /* |
1698 * 1. Skip comment lines and leading white space and colons. | 1695 * 1. Skip comment lines and leading white space and colons. |
1699 * 2. Handle command modifiers. | 1696 * 2. Handle command modifiers. |
1700 */ | 1697 */ |