diff options
author | Connor Lane Smith <cls@lubutu.com> | 2021-07-31 13:31:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-31 13:31:42 +0200 |
commit | b9115da4bec5e6cfff69da85cc47c42dd67e42e4 (patch) | |
tree | c328f4d6d101fbf80c3ab50dbb39a5235601520a /src/search.c | |
parent | 28d8421bfb3327d7a5e81369977e8fc108b0229e (diff) | |
download | vim-git-b9115da4bec5e6cfff69da85cc47c42dd67e42e4.tar.gz |
patch 8.2.3255: ci" finds following string but ci< and others don'tv8.2.3255
Problem: ci" finds following string but ci< and others don't.
Solution: When not inside an object find the start. (Connor Lane Smit,
closes #8670)
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c index aa16d4484..920c68c5a 100644 --- a/src/search.c +++ b/src/search.c @@ -2145,6 +2145,8 @@ findmatchlimit( else if (initc != '#' && initc != NUL) { find_mps_values(&initc, &findc, &backwards, TRUE); + if (dir) + backwards = (dir == FORWARD) ? FALSE : TRUE; if (findc == NUL) return NULL; } |