mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
refactor(optionstr.c): break up did_set_string_option 32
This commit is contained in:
@@ -711,6 +711,13 @@ static void did_set_highlight(char **varp, char **errmsg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void did_set_jumpoptions(char **errmsg)
|
||||||
|
{
|
||||||
|
if (opt_strings_flags(p_jop, p_jop_values, &jop_flags, true) != OK) {
|
||||||
|
*errmsg = e_invarg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void did_set_background(char **errmsg)
|
static void did_set_background(char **errmsg)
|
||||||
{
|
{
|
||||||
if (check_opt_strings(p_bg, p_bg_values, false) != OK) {
|
if (check_opt_strings(p_bg, p_bg_values, false) != OK) {
|
||||||
@@ -1392,9 +1399,7 @@ char *did_set_string_option(int opt_idx, char **varp, char *oldval, char *errbuf
|
|||||||
} else if (varp == &p_hl) { // 'highlight'
|
} else if (varp == &p_hl) { // 'highlight'
|
||||||
did_set_highlight(varp, &errmsg);
|
did_set_highlight(varp, &errmsg);
|
||||||
} else if (varp == &p_jop) { // 'jumpoptions'
|
} else if (varp == &p_jop) { // 'jumpoptions'
|
||||||
if (opt_strings_flags(p_jop, p_jop_values, &jop_flags, true) != OK) {
|
did_set_jumpoptions(&errmsg);
|
||||||
errmsg = e_invarg;
|
|
||||||
}
|
|
||||||
} else if (gvarp == &p_nf) { // 'nrformats'
|
} else if (gvarp == &p_nf) { // 'nrformats'
|
||||||
if (check_opt_strings(*varp, p_nf_values, true) != OK) {
|
if (check_opt_strings(*varp, p_nf_values, true) != OK) {
|
||||||
errmsg = e_invarg;
|
errmsg = e_invarg;
|
||||||
|
Reference in New Issue
Block a user