diff src/search.c @ 16570:2c2f5f0173c1 v8.1.1288

patch 8.1.1288: search stats don't show for mapped command commit https://github.com/vim/vim/commit/9ce3fa828d238ff28d57b0092bb37575e20010ec Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 7 21:29:11 2019 +0200 patch 8.1.1288: search stats don't show for mapped command Problem: Search stats don't show for mapped command. Solution: Remove SEARCH_PEEK from searchit flags. Add a test. (Christian Brabandt)
author Bram Moolenaar <Bram@vim.org>
date Tue, 07 May 2019 21:30:05 +0200
parents 8d0ea09e2d81
children f37255166ff4
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -4958,8 +4958,8 @@ search_stat(
 	profile_setlimit(20L, &start);
 #endif
 	while (!got_int && searchit(curwin, curbuf, &lastpos, NULL,
-				   FORWARD, NULL, 1, SEARCH_PEEK + SEARCH_KEEP,
-				     RE_LAST, (linenr_T)0, NULL, NULL) != FAIL)
+					FORWARD, NULL, 1, SEARCH_KEEP, RE_LAST,
+					      (linenr_T)0, NULL, NULL) != FAIL)
 	{
 #ifdef FEAT_RELTIME
 	    // Stop after passing the time limit.