diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 19:57:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 19:57:15 +0800 |
commit | 43681f237551dfebb64c44f60eb13459b82ea2ed (patch) | |
tree | ab9303393cb6190fb82e93893620e8ed56bed052 /src/nvim/optionstr.c | |
parent | da90be23088a3a0b8a517d66d446bdfef32e2872 (diff) | |
parent | e0ec83a9701ffd9b30a41763ad2e2326d85d8480 (diff) | |
download | rneovim-43681f237551dfebb64c44f60eb13459b82ea2ed.tar.gz rneovim-43681f237551dfebb64c44f60eb13459b82ea2ed.tar.bz2 rneovim-43681f237551dfebb64c44f60eb13459b82ea2ed.zip |
Merge pull request #17950 from zeertzjq/vim-8.2.4029
vim-patch:8.2.{4029,4093,4100,4501,4882}: breakindent patches
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r-- | src/nvim/optionstr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index 43628d2842..65bc9f60df 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -697,6 +697,10 @@ char *did_set_string_option(int opt_idx, char **varp, char *oldval, char *errbuf if (briopt_check(curwin) == FAIL) { errmsg = e_invarg; } + // list setting requires a redraw + if (curwin->w_briopt_list) { + redraw_all_later(UPD_NOT_VALID); + } } else if (varp == &p_isi || varp == &(curbuf->b_p_isk) || varp == &p_isp @@ -1601,6 +1605,12 @@ char *did_set_string_option(int opt_idx, char **varp, char *oldval, char *errbuf setmouse(); // in case 'mouse' changed } + // Changing Formatlistpattern when briopt includes the list setting: + // redraw + if ((varp == &p_flp || varp == &(curbuf->b_p_flp)) && curwin->w_briopt_list) { + redraw_all_later(UPD_NOT_VALID); + } + if (curwin->w_curswant != MAXCOL && (opt->flags & (P_CURSWANT | P_RALL)) != 0) { curwin->w_set_curswant = true; |