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)
diff --git a/src/optionstr.c b/src/optionstr.c
index 243d10f..6cc4cf5 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -756,6 +756,9 @@
{
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 @@
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;