diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-23 19:10:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-23 19:10:09 +0100 |
commit | 5d24a2257e597fd752e33b2c1e9c19cf9114a517 (patch) | |
tree | 10c6203d3f704fa189e1b52e9af5df62a6831fc8 /src/ex_getln.c | |
parent | c33181c44ccb86637e011f35cc0397a2d76e23ae (diff) |
patch 8.1.0629: "gn" selects the wrong text with a multi-line matchv8.1.0629
Problem: "gn" selects the wrong text with a multi-line match.
Solution: Get the end position from searchit() directly. (closes #3695)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 4ea8bfa9d3..4ad080aa2f 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -675,7 +675,7 @@ may_adjust_incsearch_highlighting( ++emsg_off; save = pat[patlen]; pat[patlen] = NUL; - i = searchit(curwin, curbuf, &t, + i = searchit(curwin, curbuf, &t, NULL, c == Ctrl_G ? FORWARD : BACKWARD, pat, count, search_flags, RE_SEARCH, 0, NULL, NULL); |