comparison src/gui.c @ 18358:34d5cd432cac v8.1.2173

patch 8.1.2173: searchit() has too many arguments Commit: https://github.com/vim/vim/commit/92ea26b925a0835badb0af2d5887238a4198cabb Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 18 20:53:34 2019 +0200 patch 8.1.2173: searchit() has too many arguments Problem: Searchit() has too many arguments. Solution: Move optional arguments to a struct. Add the "wrapped" argument.
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Oct 2019 21:00:04 +0200
parents 5ae41d0ea397
children 6067fbb46625
comparison
equal deleted inserted replaced
18357:ffe2ff94a3e0 18358:34d5cd432cac
5381 if (type == FRD_REPLACE) 5381 if (type == FRD_REPLACE)
5382 searchflags += SEARCH_START; 5382 searchflags += SEARCH_START;
5383 i = msg_scroll; 5383 i = msg_scroll;
5384 if (down) 5384 if (down)
5385 { 5385 {
5386 (void)do_search(NULL, '/', ga.ga_data, 1L, searchflags, NULL, NULL); 5386 (void)do_search(NULL, '/', ga.ga_data, 1L, searchflags, NULL);
5387 } 5387 }
5388 else 5388 else
5389 { 5389 {
5390 /* We need to escape '?' if and only if we are searching in the up 5390 /* We need to escape '?' if and only if we are searching in the up
5391 * direction */ 5391 * direction */
5392 p = vim_strsave_escaped(ga.ga_data, (char_u *)"?"); 5392 p = vim_strsave_escaped(ga.ga_data, (char_u *)"?");
5393 if (p != NULL) 5393 if (p != NULL)
5394 (void)do_search(NULL, '?', p, 1L, searchflags, NULL, NULL); 5394 (void)do_search(NULL, '?', p, 1L, searchflags, NULL);
5395 vim_free(p); 5395 vim_free(p);
5396 } 5396 }
5397 5397
5398 msg_scroll = i; /* don't let an error message set msg_scroll */ 5398 msg_scroll = i; /* don't let an error message set msg_scroll */
5399 } 5399 }