Mercurial > vim
comparison src/optionstr.c @ 29732:89e1d67814a9 v9.0.0206
patch 9.0.0206: redraw flags are not named specifically
Commit: https://github.com/vim/vim/commit/a4d158b3c839e96ed98ff87c7b7124ff4518c4ff
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 14 14:17:45 2022 +0100
patch 9.0.0206: redraw flags are not named specifically
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Aug 2022 15:30:05 +0200 |
parents | 6b8aaf16af99 |
children | bc6cf208b1b4 |
comparison
equal
deleted
inserted
replaced
29731:df7f360215b7 | 29732:89e1d67814a9 |
---|---|
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 | 759 // list setting requires a redraw |
760 if (curwin->w_briopt_list) | 760 if (curwin->w_briopt_list) |
761 redraw_all_later(NOT_VALID); | 761 redraw_all_later(UPD_NOT_VALID); |
762 } | 762 } |
763 #endif | 763 #endif |
764 | 764 |
765 // 'isident', 'iskeyword', 'isprint or 'isfname' option: refill g_chartab[] | 765 // 'isident', 'iskeyword', 'isprint or 'isfname' option: refill g_chartab[] |
766 // 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 |
1119 // update flag in swap file | 1119 // update flag in swap file |
1120 ml_setflags(curbuf); | 1120 ml_setflags(curbuf); |
1121 // Redraw needed when switching to/from "mac": a CR in the text | 1121 // Redraw needed when switching to/from "mac": a CR in the text |
1122 // will be displayed differently. | 1122 // will be displayed differently. |
1123 if (get_fileformat(curbuf) == EOL_MAC || *oldval == 'm') | 1123 if (get_fileformat(curbuf) == EOL_MAC || *oldval == 'm') |
1124 redraw_curbuf_later(NOT_VALID); | 1124 redraw_curbuf_later(UPD_NOT_VALID); |
1125 } | 1125 } |
1126 } | 1126 } |
1127 | 1127 |
1128 // 'fileformats' | 1128 // 'fileformats' |
1129 else if (varp == &p_ffs) | 1129 else if (varp == &p_ffs) |
1314 local_ptr = varp == &p_lcs ? &wp->w_p_lcs : &wp->w_p_fcs; | 1314 local_ptr = varp == &p_lcs ? &wp->w_p_lcs : &wp->w_p_fcs; |
1315 if (**local_ptr == NUL) | 1315 if (**local_ptr == NUL) |
1316 (void)set_chars_option(wp, local_ptr, TRUE); | 1316 (void)set_chars_option(wp, local_ptr, TRUE); |
1317 } | 1317 } |
1318 | 1318 |
1319 redraw_all_later(NOT_VALID); | 1319 redraw_all_later(UPD_NOT_VALID); |
1320 } | 1320 } |
1321 } | 1321 } |
1322 // local 'listchars' | 1322 // local 'listchars' |
1323 else if (varp == &curwin->w_p_lcs) | 1323 else if (varp == &curwin->w_p_lcs) |
1324 errmsg = set_chars_option(curwin, varp, TRUE); | 1324 errmsg = set_chars_option(curwin, varp, TRUE); |
1439 } | 1439 } |
1440 ttest(FALSE); | 1440 ttest(FALSE); |
1441 if (varp == &T_ME) | 1441 if (varp == &T_ME) |
1442 { | 1442 { |
1443 out_str(T_ME); | 1443 out_str(T_ME); |
1444 redraw_later(CLEAR); | 1444 redraw_later(UPD_CLEAR); |
1445 #if defined(MSWIN) && (!defined(FEAT_GUI_MSWIN) || defined(VIMDLL)) | 1445 #if defined(MSWIN) && (!defined(FEAT_GUI_MSWIN) || defined(VIMDLL)) |
1446 // Since t_me has been set, this probably means that the user | 1446 // Since t_me has been set, this probably means that the user |
1447 // wants to use this as default colors. Need to reset default | 1447 // wants to use this as default colors. Need to reset default |
1448 // background/foreground colors. | 1448 // background/foreground colors. |
1449 # ifdef VIMDLL | 1449 # ifdef VIMDLL |
1771 else | 1771 else |
1772 { | 1772 { |
1773 if (curwin->w_status_height) | 1773 if (curwin->w_status_height) |
1774 { | 1774 { |
1775 curwin->w_redr_status = TRUE; | 1775 curwin->w_redr_status = TRUE; |
1776 redraw_later(VALID); | 1776 redraw_later(UPD_VALID); |
1777 } | 1777 } |
1778 curbuf->b_help = (curbuf->b_p_bt[0] == 'h'); | 1778 curbuf->b_help = (curbuf->b_p_bt[0] == 'h'); |
1779 redraw_titles(); | 1779 redraw_titles(); |
1780 } | 1780 } |
1781 } | 1781 } |
2579 #if defined(FEAT_LINEBREAK) | 2579 #if defined(FEAT_LINEBREAK) |
2580 // Changing Formatlistpattern when briopt includes the list setting: | 2580 // Changing Formatlistpattern when briopt includes the list setting: |
2581 // redraw | 2581 // redraw |
2582 if ((varp == &p_flp || varp == &(curbuf->b_p_flp)) | 2582 if ((varp == &p_flp || varp == &(curbuf->b_p_flp)) |
2583 && curwin->w_briopt_list) | 2583 && curwin->w_briopt_list) |
2584 redraw_all_later(NOT_VALID); | 2584 redraw_all_later(UPD_NOT_VALID); |
2585 #endif | 2585 #endif |
2586 | 2586 |
2587 if (curwin->w_curswant != MAXCOL | 2587 if (curwin->w_curswant != MAXCOL |
2588 && (get_option_flags(opt_idx) & (P_CURSWANT | P_RALL)) != 0) | 2588 && (get_option_flags(opt_idx) & (P_CURSWANT | P_RALL)) != 0) |
2589 curwin->w_set_curswant = TRUE; | 2589 curwin->w_set_curswant = TRUE; |