Mercurial > vim
diff src/optionstr.c @ 27000:8c0730eca2ce v8.2.4029
patch 8.2.4029: debugging NFA regexp my crash, cached indent may be wrong
Commit: https://github.com/vim/vim/commit/b2d85e3784ac89f5209489844c1ee0f54d117abb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 7 16:55:32 2022 +0000
patch 8.2.4029: debugging NFA regexp my crash, cached indent may be wrong
Problem: Debugging NFA regexp my crash, cached indent may be wrong.
Solution: Fix some debug warnings in the NFA regexp code. Make sure log_fd
is set when used. Fix breakindent and indent caching. (Christian
Brabandt, closes #9482)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 Jan 2022 18:00:04 +0100 |
parents | ac75c145f0a9 |
children | 268f6a3511df |
line wrap: on
line diff
--- a/src/optionstr.c +++ b/src/optionstr.c @@ -756,6 +756,9 @@ did_set_string_option( { if (briopt_check(curwin) == FAIL) errmsg = e_invalid_argument; + // list setting requires a redraw + if (curwin->w_briopt_list) + redraw_all_later(NOT_VALID); } #endif @@ -2610,6 +2613,14 @@ ambw_end: update_package_paths_in_lua(); #endif +#if defined(FEAT_LINEBREAK) + // 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(NOT_VALID); +#endif + if (curwin->w_curswant != MAXCOL && (get_option_flags(opt_idx) & (P_CURSWANT | P_RALL)) != 0) curwin->w_set_curswant = TRUE;