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.
diff --git a/src/gui.c b/src/gui.c
index 860add2..31be46c 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -5383,7 +5383,7 @@
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 @@
* 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);
}