comparison src/search.c @ 17948:c77a41ea0365 v8.1.1970

patch 8.1.1970: search stat space wrong, no test for 8.1.1965 Commit: https://github.com/vim/vim/commit/19e8ac72e9c17b894a9c74cb8f70feb33567033c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 3 22:23:38 2019 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Tue, 03 Sep 2019 22:30:03 +0200
parents 1e86f8b18a5d
children a9c54c20295c
comparison
equal deleted inserted replaced
17947:8ad762c15b0f 17948:c77a41ea0365
1389 { 1389 {
1390 // Reserve enough space for the search pattern + offset + 1390 // Reserve enough space for the search pattern + offset +
1391 // search stat. Use all the space available, so that the 1391 // search stat. Use all the space available, so that the
1392 // search state is right aligned. If there is not enough space 1392 // search state is right aligned. If there is not enough space
1393 // msg_strtrunc() will shorten in the middle. 1393 // msg_strtrunc() will shorten in the middle.
1394 if (msg_scrolled != 0 || cmd_silent) 1394 if (msg_scrolled != 0 && !cmd_silent)
1395 // Use all the columns. 1395 // Use all the columns.
1396 len = (int)(Rows - msg_row) * Columns - 1; 1396 len = (int)(Rows - msg_row) * Columns - 1;
1397 else 1397 else
1398 // Use up to 'showcmd' column. 1398 // Use up to 'showcmd' column.
1399 len = (int)(Rows - msg_row - 1) * Columns + sc_col - 1; 1399 len = (int)(Rows - msg_row - 1) * Columns + sc_col - 1;