vim-patch:8.1.1970: search stat space wrong, no test for 8.1.1965

Problem:    Search stat space wrong, no test for 8.1.1965.
Solution:   Fix check for cmd_silent.  Add a test. (Christian Brabandt)
19e8ac72e9
This commit is contained in:
Jan Edmund Lazo
2020-09-29 19:26:35 -04:00
parent 621f7b607f
commit 37c6cbc758
2 changed files with 23 additions and 2 deletions

View File

@@ -1198,7 +1198,7 @@ int do_search(
// msg_strtrunc() will shorten in the middle.
if (ui_has(kUIMessages)) {
len = 0; // adjusted below
} else if (msg_scrolled != 0 || cmd_silent) {
} else if (msg_scrolled != 0 && !cmd_silent) {
// Use all the columns.
len = (Rows - msg_row) * Columns - 1;
} else {