Mercurial > vim
diff src/term.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 | 8a822186f1ab |
children | 0eab537e9ccb |
line wrap: on
line diff
--- a/src/term.c +++ b/src/term.c @@ -1628,12 +1628,12 @@ may_adjust_color_count(int val) init_highlight(TRUE, FALSE); # ifdef DEBUG_TERMRESPONSE { - int r = redraw_asap(CLEAR); + int r = redraw_asap(UPD_CLEAR); log_tr("Received t_Co, redraw_asap(): %d", r); } # else - redraw_asap(CLEAR); + redraw_asap(UPD_CLEAR); # endif } } @@ -3551,7 +3551,7 @@ set_shellsize(int width, int height, int do_check_scrollbind(TRUE); if (State & MODE_CMDLINE) { - update_screen(NOT_VALID); + update_screen(UPD_NOT_VALID); redrawcmdline(); } else @@ -3559,10 +3559,10 @@ set_shellsize(int width, int height, int update_topline(); if (pum_visible()) { - redraw_later(NOT_VALID); + redraw_later(UPD_NOT_VALID); ins_compl_show_pum(); } - update_screen(NOT_VALID); + update_screen(UPD_NOT_VALID); if (redrawing()) setcursor(); } @@ -3920,8 +3920,8 @@ log_tr(const char *fmt, ...) now = start; profile_end(&now); fprintf(fd_tr, "%s: %s ", profile_msg(&now), - must_redraw == NOT_VALID ? "NV" - : must_redraw == CLEAR ? "CL" : " "); + must_redraw == UPD_NOT_VALID ? "NV" + : must_redraw == UPD_CLEAR ? "CL" : " "); va_start(ap, fmt); vfprintf(fd_tr, fmt, ap); va_end(ap); @@ -4624,12 +4624,12 @@ handle_u7_response(int *arg, char_u *tp set_option_value_give_err((char_u *)"ambw", 0L, (char_u *)aw, 0); # ifdef DEBUG_TERMRESPONSE { - int r = redraw_asap(CLEAR); + int r = redraw_asap(UPD_CLEAR); log_tr("set 'ambiwidth', redraw_asap(): %d", r); } # else - redraw_asap(CLEAR); + redraw_asap(UPD_CLEAR); # endif # ifdef FEAT_EVAL set_vim_var_string(VV_TERMU7RESP, tp, csi_len); @@ -5167,7 +5167,7 @@ handle_osc(char_u *tp, char_u *argp, int set_option_value_give_err((char_u *)"bg", 0L, (char_u *)new_bg_val, 0); reset_option_was_set((char_u *)"bg"); - redraw_asap(CLEAR); + redraw_asap(UPD_CLEAR); } } # ifdef FEAT_TERMINAL