Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
26999:aba0728a28d9 | 27000:8c0730eca2ce |
---|---|
754 // 'breakindentopt' | 754 // 'breakindentopt' |
755 else if (varp == &curwin->w_p_briopt) | 755 else if (varp == &curwin->w_p_briopt) |
756 { | 756 { |
757 if (briopt_check(curwin) == FAIL) | 757 if (briopt_check(curwin) == FAIL) |
758 errmsg = e_invalid_argument; | 758 errmsg = e_invalid_argument; |
759 // list setting requires a redraw | |
760 if (curwin->w_briopt_list) | |
761 redraw_all_later(NOT_VALID); | |
759 } | 762 } |
760 #endif | 763 #endif |
761 | 764 |
762 // 'isident', 'iskeyword', 'isprint or 'isfname' option: refill g_chartab[] | 765 // 'isident', 'iskeyword', 'isprint or 'isfname' option: refill g_chartab[] |
763 // If the new option is invalid, use old value. 'lisp' option: refill | 766 // If the new option is invalid, use old value. 'lisp' option: refill |
2608 #if defined(FEAT_LUA) || defined(PROTO) | 2611 #if defined(FEAT_LUA) || defined(PROTO) |
2609 if (varp == &p_rtp) | 2612 if (varp == &p_rtp) |
2610 update_package_paths_in_lua(); | 2613 update_package_paths_in_lua(); |
2611 #endif | 2614 #endif |
2612 | 2615 |
2616 #if defined(FEAT_LINEBREAK) | |
2617 // Changing Formatlistpattern when briopt includes the list setting: | |
2618 // redraw | |
2619 if ((varp == &p_flp || varp == &(curbuf->b_p_flp)) | |
2620 && curwin->w_briopt_list) | |
2621 redraw_all_later(NOT_VALID); | |
2622 #endif | |
2623 | |
2613 if (curwin->w_curswant != MAXCOL | 2624 if (curwin->w_curswant != MAXCOL |
2614 && (get_option_flags(opt_idx) & (P_CURSWANT | P_RALL)) != 0) | 2625 && (get_option_flags(opt_idx) & (P_CURSWANT | P_RALL)) != 0) |
2615 curwin->w_set_curswant = TRUE; | 2626 curwin->w_set_curswant = TRUE; |
2616 | 2627 |
2617 if ((opt_flags & OPT_NO_REDRAW) == 0) | 2628 if ((opt_flags & OPT_NO_REDRAW) == 0) |