summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-23 19:10:09 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-23 19:10:09 +0100
commit5d24a2257e597fd752e33b2c1e9c19cf9114a517 (patch)
tree10c6203d3f704fa189e1b52e9af5df62a6831fc8 /src/normal.c
parentc33181c44ccb86637e011f35cc0397a2d76e23ae (diff)
downloadvim-git-5d24a2257e597fd752e33b2c1e9c19cf9114a517.tar.gz
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/normal.c')
-rw-r--r--src/normal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.c b/src/normal.c
index 5310824ee..78e3f201c 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -4338,7 +4338,7 @@ find_decl(
for (;;)
{
valid = FALSE;
- t = searchit(curwin, curbuf, &curwin->w_cursor, FORWARD,
+ t = searchit(curwin, curbuf, &curwin->w_cursor, NULL, FORWARD,
pat, 1L, searchflags, RE_LAST, (linenr_T)0, NULL, NULL);
if (curwin->w_cursor.lnum >= old_pos.lnum)
t = FAIL; /* match after start is failure too */