mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
refactor(optionstr.c): move handling of formatlistpat
This commit is contained in:
@@ -1849,6 +1849,12 @@ static char *did_set_string_option_for(buf_T *buf, win_T *win, int opt_idx, char
|
|||||||
did_set_option_listflag(varp, COCU_ALL, errbuf, errbuflen, &errmsg);
|
did_set_option_listflag(varp, COCU_ALL, errbuf, errbuflen, &errmsg);
|
||||||
} else if (varp == &p_mouse) { // 'mouse'
|
} else if (varp == &p_mouse) { // 'mouse'
|
||||||
did_set_option_listflag(varp, MOUSE_ALL, errbuf, errbuflen, &errmsg);
|
did_set_option_listflag(varp, MOUSE_ALL, errbuf, errbuflen, &errmsg);
|
||||||
|
} else if (gvarp == &p_flp) {
|
||||||
|
if (win->w_briopt_list) {
|
||||||
|
// Changing Formatlistpattern when briopt includes the list setting:
|
||||||
|
// redraw
|
||||||
|
redraw_all_later(UPD_NOT_VALID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If error detected, restore the previous value.
|
// If error detected, restore the previous value.
|
||||||
@@ -1896,12 +1902,6 @@ static char *did_set_string_option_for(buf_T *buf, win_T *win, int opt_idx, char
|
|||||||
setmouse(); // in case 'mouse' changed
|
setmouse(); // in case 'mouse' changed
|
||||||
}
|
}
|
||||||
|
|
||||||
// Changing Formatlistpattern when briopt includes the list setting:
|
|
||||||
// redraw
|
|
||||||
if ((varp == &p_flp || varp == &(buf->b_p_flp)) && win->w_briopt_list) {
|
|
||||||
redraw_all_later(UPD_NOT_VALID);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (win->w_curswant != MAXCOL
|
if (win->w_curswant != MAXCOL
|
||||||
&& (opt->flags & (P_CURSWANT | P_RALL)) != 0) {
|
&& (opt->flags & (P_CURSWANT | P_RALL)) != 0) {
|
||||||
win->w_set_curswant = true;
|
win->w_set_curswant = true;
|
||||||
|
Reference in New Issue
Block a user