comparison src/insexpand.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 e0ec4cd7a865
children 9e6d5a4abb1c
comparison
equal deleted inserted replaced
18357:ffe2ff94a3e0 18358:34d5cd432cac
2879 compl_direction, compl_pattern); 2879 compl_direction, compl_pattern);
2880 else 2880 else
2881 found_new_match = searchit(NULL, ins_buf, pos, NULL, 2881 found_new_match = searchit(NULL, ins_buf, pos, NULL,
2882 compl_direction, 2882 compl_direction,
2883 compl_pattern, 1L, SEARCH_KEEP + SEARCH_NFMSG, 2883 compl_pattern, 1L, SEARCH_KEEP + SEARCH_NFMSG,
2884 RE_LAST, (linenr_T)0, NULL, NULL); 2884 RE_LAST, NULL);
2885 --msg_silent; 2885 --msg_silent;
2886 if (!compl_started || set_match_pos) 2886 if (!compl_started || set_match_pos)
2887 { 2887 {
2888 // set "compl_started" even on fail 2888 // set "compl_started" even on fail
2889 compl_started = TRUE; 2889 compl_started = TRUE;