summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-07-15 13:21:30 +0200
committerBram Moolenaar <Bram@vim.org>2011-07-15 13:21:30 +0200
commit19fd09a78fd0959ad60ff03a2324c974e0f5cc44 (patch)
tree4f146e7d235de501e089863bf62e85c6bb95d2e4 /src/search.c
parent54ee2b8741e10906393cf85450d69d91edb3f2eb (diff)
downloadvim-git-19fd09a78fd0959ad60ff03a2324c974e0f5cc44.tar.gz
updated for version 7.3.246v7.3.246
Problem: Repeating "f4" in "4444" skips one 4. Solution: Check the t_cmd flag. (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 6c9e1dae9..0d0d26d81 100644
--- 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;
}