forked from aniani/vim
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)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user