comparison src/spell.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 f4db8631d9c5
children 7e7ec935e7c8
comparison
equal deleted inserted replaced
18357:ffe2ff94a3e0 18358:34d5cd432cac
2859 sub_nsubs = 0; 2859 sub_nsubs = 0;
2860 sub_nlines = 0; 2860 sub_nlines = 0;
2861 curwin->w_cursor.lnum = 0; 2861 curwin->w_cursor.lnum = 0;
2862 while (!got_int) 2862 while (!got_int)
2863 { 2863 {
2864 if (do_search(NULL, '/', frompat, 1L, SEARCH_KEEP, NULL, NULL) == 0 2864 if (do_search(NULL, '/', frompat, 1L, SEARCH_KEEP, NULL) == 0
2865 || u_save_cursor() == FAIL) 2865 || u_save_cursor() == FAIL)
2866 break; 2866 break;
2867 2867
2868 /* Only replace when the right word isn't there yet. This happens 2868 /* Only replace when the right word isn't there yet. This happens
2869 * when changing "etc" to "etc.". */ 2869 * when changing "etc" to "etc.". */