comparison src/proto/search.pro @ 15239:db5d2429bda3 v8.1.0629

patch 8.1.0629: "gn" selects the wrong text with a multi-line match commit https://github.com/vim/vim/commit/5d24a2257e597fd752e33b2c1e9c19cf9114a517 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 23 19:10:09 2018 +0100 patch 8.1.0629: "gn" selects the wrong text with a multi-line match Problem: "gn" selects the wrong text with a multi-line match. Solution: Get the end position from searchit() directly. (closes https://github.com/vim/vim/issues/3695)
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Dec 2018 19:15:05 +0100
parents 1174611ad715
children d4b2a212fa2f
comparison
equal deleted inserted replaced
15238:85705008bb7a 15239:db5d2429bda3
20 void set_csearch_until(int t_cmd); 20 void set_csearch_until(int t_cmd);
21 char_u *last_search_pat(void); 21 char_u *last_search_pat(void);
22 void reset_search_dir(void); 22 void reset_search_dir(void);
23 void set_last_search_pat(char_u *s, int idx, int magic, int setlast); 23 void set_last_search_pat(char_u *s, int idx, int magic, int setlast);
24 void last_pat_prog(regmmatch_T *regmatch); 24 void last_pat_prog(regmmatch_T *regmatch);
25 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); 25 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);
26 void set_search_direction(int cdir); 26 void set_search_direction(int cdir);
27 int do_search(oparg_T *oap, int dirc, char_u *pat, long count, int options, proftime_T *tm, int *timed_out); 27 int do_search(oparg_T *oap, int dirc, char_u *pat, long count, int options, proftime_T *tm, int *timed_out);
28 int search_for_exact_line(buf_T *buf, pos_T *pos, int dir, char_u *pat); 28 int search_for_exact_line(buf_T *buf, pos_T *pos, int dir, char_u *pat);
29 int searchc(cmdarg_T *cap, int t_cmd); 29 int searchc(cmdarg_T *cap, int t_cmd);
30 pos_T *findmatch(oparg_T *oap, int initc); 30 pos_T *findmatch(oparg_T *oap, int initc);