comparison src/search.c @ 6426:f673842874b6 v7.4.543

updated for version 7.4.543 Problem: Since patch 7.4.232 "1,3s/\n//" joins two lines instead of three. (Eliseo Mart?nez) Issue 287 Solution: Correct the line count. (Christian Brabandt) Also set the last used search pattern.
author Bram Moolenaar <bram@vim.org>
date Sat, 13 Dec 2014 03:17:11 +0100
parents 7f48abe500e1
children 19726451aabe
comparison
equal deleted inserted replaced
6425:8cae3b61ce9e 6426:f673842874b6
10 * search.c: code for normal mode searching commands 10 * search.c: code for normal mode searching commands
11 */ 11 */
12 12
13 #include "vim.h" 13 #include "vim.h"
14 14
15 static void save_re_pat __ARGS((int idx, char_u *pat, int magic));
16 #ifdef FEAT_EVAL 15 #ifdef FEAT_EVAL
17 static void set_vv_searchforward __ARGS((void)); 16 static void set_vv_searchforward __ARGS((void));
18 static int first_submatch __ARGS((regmmatch_T *rp)); 17 static int first_submatch __ARGS((regmmatch_T *rp));
19 #endif 18 #endif
20 static int check_prevcol __ARGS((char_u *linep, int col, int ch, int *prevcol)); 19 static int check_prevcol __ARGS((char_u *linep, int col, int ch, int *prevcol));
270 } 269 }
271 return rev; 270 return rev;
272 } 271 }
273 #endif 272 #endif
274 273
275 static void 274 void
276 save_re_pat(idx, pat, magic) 275 save_re_pat(idx, pat, magic)
277 int idx; 276 int idx;
278 char_u *pat; 277 char_u *pat;
279 int magic; 278 int magic;
280 { 279 {