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/proto | |
parent | c33181c44ccb86637e011f35cc0397a2d76e23ae (diff) | |
download | vim-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/proto')
-rw-r--r-- | src/proto/search.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/search.pro b/src/proto/search.pro index eeaa37cdd..eb614a18f 100644 --- a/src/proto/search.pro +++ b/src/proto/search.pro @@ -22,7 +22,7 @@ char_u *last_search_pat(void); void reset_search_dir(void); void set_last_search_pat(char_u *s, int idx, int magic, int setlast); void last_pat_prog(regmmatch_T *regmatch); -int searchit(win_T *win, buf_T *buf, pos_T *pos, int dir, char_u *pat, long count, int options, int pat_use, linenr_T stop_lnum, proftime_T *tm, int *timed_out); +int searchit(win_T *win, buf_T *buf, pos_T *pos, pos_T *end_pos, int dir, char_u *pat, long count, int options, int pat_use, linenr_T stop_lnum, proftime_T *tm, int *timed_out); void set_search_direction(int cdir); int do_search(oparg_T *oap, int dirc, char_u *pat, long count, int options, proftime_T *tm, int *timed_out); int search_for_exact_line(buf_T *buf, pos_T *pos, int dir, char_u *pat); |