summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-03 22:23:38 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-03 22:23:38 +0200
commit19e8ac72e9c17b894a9c74cb8f70feb33567033c (patch)
tree3799cde2dad44f4c4280a618514ca6be47d45442 /src/search.c
parent581ba39aefe837298a9943b04a1dab13a7ec6772 (diff)
downloadvim-git-19e8ac72e9c17b894a9c74cb8f70feb33567033c.tar.gz
patch 8.1.1970: search stat space wrong, no test for 8.1.1965v8.1.1970
Problem: Search stat space wrong, no test for 8.1.1965. Solution: Fix check for cmd_silent. Add a test. (Christian Brabandt)
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index 758c4ef1a..ee66052a9 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1391,7 +1391,7 @@ do_search(
// search stat. Use all the space available, so that the
// search state is right aligned. If there is not enough space
// msg_strtrunc() will shorten in the middle.
- if (msg_scrolled != 0 || cmd_silent)
+ if (msg_scrolled != 0 && !cmd_silent)
// Use all the columns.
len = (int)(Rows - msg_row) * Columns - 1;
else