diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-14 14:17:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-14 14:17:45 +0100 |
commit | a4d158b3c839e96ed98ff87c7b7124ff4518c4ff (patch) | |
tree | 42d3a6b65d4ae53a6e078c8f24a5ee9960e3ad24 /src/highlight.c | |
parent | 28c9f895716cfa8f1220bc41b72a534c0e10cabe (diff) |
patch 9.0.0206: redraw flags are not named specificallyv9.0.0206
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
Diffstat (limited to 'src/highlight.c')
-rw-r--r-- | src/highlight.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/highlight.c b/src/highlight.c index dc11df4d4a..af85c385da 100644 --- a/src/highlight.c +++ b/src/highlight.c @@ -696,7 +696,7 @@ highlight_group_link( hlgroup->sg_script_ctx.sc_lnum += SOURCING_LNUM; #endif hlgroup->sg_cleared = FALSE; - redraw_all_later(SOME_VALID); + redraw_all_later(UPD_SOME_VALID); // Only call highlight_changed() once after multiple changes. need_highlight_changed = TRUE; @@ -939,7 +939,7 @@ highlight_set_ctermfg(int idx, int color, int is_normal_group) if (!gui.in_use && !gui.starting) #endif { - must_redraw = CLEAR; + must_redraw = UPD_CLEAR; if (termcap_active && color >= 0) term_fg_color(color); } @@ -962,7 +962,7 @@ highlight_set_ctermbg(int idx, int color, int is_normal_group) if (!gui.in_use && !gui.starting) #endif { - must_redraw = CLEAR; + must_redraw = UPD_CLEAR; if (color >= 0) { int dark = -1; @@ -1005,7 +1005,7 @@ highlight_set_ctermul(int idx, int color, int is_normal_group) if (!gui.in_use && !gui.starting) #endif { - must_redraw = CLEAR; + must_redraw = UPD_CLEAR; if (termcap_active && color >= 0) term_ul_color(color); } @@ -1725,7 +1725,7 @@ do_highlight( { highlight_gui_started(); did_highlight_changed = TRUE; - redraw_all_later(NOT_VALID); + redraw_all_later(UPD_NOT_VALID); } #endif #ifdef FEAT_VTP @@ -1779,7 +1779,7 @@ do_highlight( // redrawing. This may happen when evaluating 'statusline' changes the // StatusLine group. if (!updating_screen) - redraw_all_later(NOT_VALID); + redraw_all_later(UPD_NOT_VALID); need_highlight_changed = TRUE; } } @@ -1919,7 +1919,7 @@ set_normal_colors(void) FALSE, TRUE, FALSE)) { gui_mch_new_colors(); - must_redraw = CLEAR; + must_redraw = UPD_CLEAR; } # ifdef FEAT_GUI_X11 if (set_group_colors((char_u *)"Menu", @@ -1929,7 +1929,7 @@ set_normal_colors(void) # ifdef FEAT_MENU gui_mch_new_menu_colors(); # endif - must_redraw = CLEAR; + must_redraw = UPD_CLEAR; } # ifdef FEAT_BEVAL_GUI if (set_group_colors((char_u *)"Tooltip", @@ -1939,7 +1939,7 @@ set_normal_colors(void) # ifdef FEAT_TOOLBAR gui_mch_new_tooltip_colors(); # endif - must_redraw = CLEAR; + must_redraw = UPD_CLEAR; } # endif if (set_group_colors((char_u *)"Scrollbar", @@ -1947,7 +1947,7 @@ set_normal_colors(void) FALSE, FALSE, FALSE)) { gui_new_scrollbar_colors(); - must_redraw = CLEAR; + must_redraw = UPD_CLEAR; } # endif } @@ -1973,7 +1973,7 @@ set_normal_colors(void) // color cterm_normal_fg_gui_color = HL_TABLE()[idx].sg_gui_fg; cterm_normal_bg_gui_color = HL_TABLE()[idx].sg_gui_bg; - must_redraw = CLEAR; + must_redraw = UPD_CLEAR; } } } @@ -2545,7 +2545,7 @@ get_attr_entry(garray_T *table, attrentry_T *aep) clear_hl_tables(); - must_redraw = CLEAR; + must_redraw = UPD_CLEAR; for (i = 0; i < highlight_ga.ga_len; ++i) set_hl_attr(i); |