diff src/search.c @ 2947:3f1a4ed36d1b v7.3.246

updated for version 7.3.246 Problem: Repeating "f4" in "4444" skips one 4. Solution: Check the t_cmd flag. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Fri, 15 Jul 2011 13:21:30 +0200
parents 441d364773dc
children 4b8c614c1c91
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -1585,7 +1585,7 @@ searchc(cap, t_cmd)
 	/* Force a move of at least one char, so ";" and "," will move the
 	 * cursor, even if the cursor is right in front of char we are looking
 	 * at. */
-	if (vim_strchr(p_cpo, CPO_SCOLON) == NULL && count == 1)
+	if (vim_strchr(p_cpo, CPO_SCOLON) == NULL && count == 1 && t_cmd)
 	    stop = FALSE;
     }