From b9115da4bec5e6cfff69da85cc47c42dd67e42e4 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Sat, 31 Jul 2021 13:31:42 +0200 Subject: patch 8.2.3255: ci" finds following string but ci< and others don't 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) --- src/search.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/search.c') 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; } -- cgit v1.2.1