mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 13:56:05 +00:00
vim-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.
92ea26b925
This commit is contained in:
@@ -70,6 +70,15 @@ typedef struct spat {
|
||||
dict_T *additional_data; ///< Additional data from ShaDa file.
|
||||
} SearchPattern;
|
||||
|
||||
/// Optional extra arguments for searchit().
|
||||
typedef struct {
|
||||
linenr_T sa_stop_lnum; ///< stop after this line number when != 0
|
||||
proftime_T *sa_tm; ///< timeout limit or NULL
|
||||
int sa_timed_out; ///< set when timed out
|
||||
int sa_wrapped; ///< search wrapped around
|
||||
} searchit_arg_T;
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "search.h.generated.h"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user