0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2019-10-18 20:53:34 +02:00
parent 7751d1d1a3
commit 92ea26b925
13 changed files with 97 additions and 47 deletions

View File

@@ -5383,7 +5383,7 @@ gui_do_findrepl(
i = msg_scroll;
if (down)
{
(void)do_search(NULL, '/', ga.ga_data, 1L, searchflags, NULL, NULL);
(void)do_search(NULL, '/', ga.ga_data, 1L, searchflags, NULL);
}
else
{
@@ -5391,7 +5391,7 @@ gui_do_findrepl(
* direction */
p = vim_strsave_escaped(ga.ga_data, (char_u *)"?");
if (p != NULL)
(void)do_search(NULL, '?', p, 1L, searchflags, NULL, NULL);
(void)do_search(NULL, '?', p, 1L, searchflags, NULL);
vim_free(p);
}