summaryrefslogtreecommitdiffstats
path: root/src/change.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-14 14:17:45 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-14 14:17:45 +0100
commita4d158b3c839e96ed98ff87c7b7124ff4518c4ff (patch)
tree42d3a6b65d4ae53a6e078c8f24a5ee9960e3ad24 /src/change.c
parent28c9f895716cfa8f1220bc41b72a534c0e10cabe (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/change.c')
-rw-r--r--src/change.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/change.c b/src/change.c
index 42d4550172..9e1c1c9188 100644
--- a/src/change.c
+++ b/src/change.c
@@ -559,8 +559,8 @@ changed_common(
linenr_T last = lnume + xtra - 1; // last line after the change
#endif
// Mark this window to be redrawn later.
- if (wp->w_redr_type < VALID)
- wp->w_redr_type = VALID;
+ if (wp->w_redr_type < UPD_VALID)
+ wp->w_redr_type = UPD_VALID;
// Check if a change in the buffer has invalidated the cached
// values for the cursor.
@@ -648,18 +648,18 @@ changed_common(
if (wp->w_p_rnu && xtra != 0)
{
wp->w_last_cursor_lnum_rnu = 0;
- redraw_win_later(wp, VALID);
+ redraw_win_later(wp, UPD_VALID);
}
#ifdef FEAT_SYN_HL
// Cursor line highlighting probably need to be updated with
- // "VALID" if it's below the change.
+ // "UPD_VALID" if it's below the change.
// If the cursor line is inside the change we need to redraw more.
if (wp->w_p_cul)
{
if (xtra == 0)
- redraw_win_later(wp, VALID);
+ redraw_win_later(wp, UPD_VALID);
else if (lnum <= wp->w_last_cursorline)
- redraw_win_later(wp, SOME_VALID);
+ redraw_win_later(wp, UPD_SOME_VALID);
}
#endif
}
@@ -671,8 +671,8 @@ changed_common(
// Call update_screen() later, which checks out what needs to be redrawn,
// since it notices b_mod_set and then uses b_mod_*.
- if (must_redraw < VALID)
- must_redraw = VALID;
+ if (must_redraw < UPD_VALID)
+ must_redraw = UPD_VALID;
// when the cursor line is changed always trigger CursorMoved
if (lnum <= curwin->w_cursor.lnum
@@ -724,7 +724,7 @@ changed_bytes(linenr_T lnum, colnr_T col)
FOR_ALL_WINDOWS(wp)
if (wp->w_p_diff && wp != curwin)
{
- redraw_win_later(wp, VALID);
+ redraw_win_later(wp, UPD_VALID);
wlnum = diff_lnum_win(lnum, wp);
if (wlnum > 0)
changedOneline(wp->w_buffer, wlnum);
@@ -869,7 +869,7 @@ changed_lines(
FOR_ALL_WINDOWS(wp)
if (wp->w_p_diff && wp != curwin)
{
- redraw_win_later(wp, VALID);
+ redraw_win_later(wp, UPD_VALID);
wlnum = diff_lnum_win(lnum, wp);
if (wlnum > 0)
changed_lines_buf(wp->w_buffer, wlnum,