mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 12:38:33 +00:00
refactor(options): rename empty_option
to empty_string_option
This commit is contained in:
@@ -482,7 +482,7 @@ buf_T *tv_get_buf(typval_T *tv, int curtab_only)
|
||||
int save_magic = p_magic;
|
||||
p_magic = true;
|
||||
char *save_cpo = p_cpo;
|
||||
p_cpo = empty_option;
|
||||
p_cpo = empty_string_option;
|
||||
|
||||
buf_T *buf = buflist_findnr(buflist_findpat(name, name + strlen(name),
|
||||
true, false, curtab_only));
|
||||
@@ -1733,7 +1733,7 @@ static void f_expand(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
char *p_csl_save = p_csl;
|
||||
|
||||
// avoid using 'completeslash' here
|
||||
p_csl = empty_option;
|
||||
p_csl = empty_string_option;
|
||||
#endif
|
||||
|
||||
rettv->v_type = VAR_STRING;
|
||||
@@ -4516,7 +4516,7 @@ static void find_some_match(typval_T *const argvars, typval_T *const rettv,
|
||||
|
||||
// Make 'cpoptions' empty, the 'l' flag should not be used here.
|
||||
char *save_cpo = p_cpo;
|
||||
p_cpo = empty_option;
|
||||
p_cpo = empty_string_option;
|
||||
|
||||
rettv->vval.v_number = -1;
|
||||
switch (type) {
|
||||
@@ -7108,7 +7108,7 @@ long do_searchpair(const char *spat, const char *mpat, const char *epat, int dir
|
||||
|
||||
// Make 'cpoptions' empty, the 'l' flag should not be used here.
|
||||
char *save_cpo = p_cpo;
|
||||
p_cpo = empty_option;
|
||||
p_cpo = empty_string_option;
|
||||
|
||||
// Set the time limit, if there is one.
|
||||
proftime_T tm = profile_setlimit(time_limit);
|
||||
@@ -7234,7 +7234,7 @@ long do_searchpair(const char *spat, const char *mpat, const char *epat, int dir
|
||||
|
||||
xfree(pat2);
|
||||
xfree(pat3);
|
||||
if (p_cpo == empty_option) {
|
||||
if (p_cpo == empty_string_option) {
|
||||
p_cpo = save_cpo;
|
||||
} else {
|
||||
// Darn, evaluating the {skip} expression changed the value.
|
||||
@@ -7966,7 +7966,7 @@ static void f_split(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
|
||||
// Make 'cpoptions' empty, the 'l' flag should not be used here.
|
||||
char *save_cpo = p_cpo;
|
||||
p_cpo = empty_option;
|
||||
p_cpo = empty_string_option;
|
||||
|
||||
const char *str = tv_get_string(&argvars[0]);
|
||||
const char *pat = NULL;
|
||||
|
Reference in New Issue
Block a user