mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
refactor(optionstr.c): break up did_set_string_option 41
This commit is contained in:
@@ -698,6 +698,13 @@ static void did_set_helpfile(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void did_set_cursorlineopt(win_T *win, char **varp, char **errmsg)
|
||||||
|
{
|
||||||
|
if (**varp == NUL || fill_culopt_flags(*varp, win) != OK) {
|
||||||
|
*errmsg = e_invarg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void did_set_helplang(char **errmsg)
|
static void did_set_helplang(char **errmsg)
|
||||||
{
|
{
|
||||||
// Check for "", "ab", "ab,cd", etc.
|
// Check for "", "ab", "ab,cd", etc.
|
||||||
@@ -1457,9 +1464,7 @@ char *did_set_string_option(int opt_idx, char **varp, char *oldval, char *errbuf
|
|||||||
runtime_search_path_invalidate();
|
runtime_search_path_invalidate();
|
||||||
} else if (varp == &curwin->w_p_culopt
|
} else if (varp == &curwin->w_p_culopt
|
||||||
|| gvarp == &curwin->w_allbuf_opt.wo_culopt) { // 'cursorlineopt'
|
|| gvarp == &curwin->w_allbuf_opt.wo_culopt) { // 'cursorlineopt'
|
||||||
if (**varp == NUL || fill_culopt_flags(*varp, curwin) != OK) {
|
did_set_cursorlineopt(curwin, varp, &errmsg);
|
||||||
errmsg = e_invarg;
|
|
||||||
}
|
|
||||||
} else if (varp == &curwin->w_p_cc) { // 'colorcolumn'
|
} else if (varp == &curwin->w_p_cc) { // 'colorcolumn'
|
||||||
errmsg = check_colorcolumn(curwin);
|
errmsg = check_colorcolumn(curwin);
|
||||||
} else if (varp == &p_hlg) { // 'helplang'
|
} else if (varp == &p_hlg) { // 'helplang'
|
||||||
|
Reference in New Issue
Block a user