From 92ea26b925a0835badb0af2d5887238a4198cabb Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 18 Oct 2019 20:53:34 +0200 Subject: 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. --- src/spell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/spell.c') diff --git a/src/spell.c b/src/spell.c index 04e4af601..46209077c 100644 --- a/src/spell.c +++ b/src/spell.c @@ -2861,7 +2861,7 @@ ex_spellrepall(exarg_T *eap UNUSED) curwin->w_cursor.lnum = 0; while (!got_int) { - if (do_search(NULL, '/', frompat, 1L, SEARCH_KEEP, NULL, NULL) == 0 + if (do_search(NULL, '/', frompat, 1L, SEARCH_KEEP, NULL) == 0 || u_save_cursor() == FAIL) break; -- cgit v1.2.1