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().
diff --git a/src/window.c b/src/window.c
index 7d2fe42..f52aa64 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1313,8 +1313,8 @@
// Both windows need redrawing. Update all status lines, in case they
// show something related to the window count or position.
- redraw_win_later(wp, NOT_VALID);
- redraw_win_later(oldwin, NOT_VALID);
+ redraw_win_later(wp, UPD_NOT_VALID);
+ redraw_win_later(oldwin, UPD_NOT_VALID);
status_redraw_all();
if (need_status)
@@ -1718,7 +1718,7 @@
wp->w_cursor = curwin->w_cursor;
win_enter(wp, TRUE);
- redraw_all_later(NOT_VALID);
+ redraw_all_later(UPD_NOT_VALID);
}
/*
@@ -1801,7 +1801,7 @@
(void)win_comp_pos();
}
- redraw_all_later(NOT_VALID);
+ redraw_all_later(UPD_NOT_VALID);
}
/*
@@ -1903,7 +1903,7 @@
frame_append(win2->w_frame, win1->w_frame);
(void)win_comp_pos(); // recompute w_winrow for all windows
- redraw_later(NOT_VALID);
+ redraw_later(UPD_NOT_VALID);
}
win_enter(win1, FALSE);
}
@@ -1966,7 +1966,7 @@
frame_new_height(topfr, height, FALSE, FALSE);
topfr->fr_win->w_wincol = col;
frame_new_width(topfr, width, FALSE, FALSE);
- redraw_all_later(NOT_VALID);
+ redraw_all_later(UPD_NOT_VALID);
}
}
else if (topfr->fr_layout == FR_ROW)
@@ -2296,7 +2296,7 @@
static void
win_init_empty(win_T *wp)
{
- redraw_win_later(wp, NOT_VALID);
+ redraw_win_later(wp, UPD_NOT_VALID);
wp->w_lines_valid = 0;
wp->w_cursor.lnum = 1;
wp->w_curswant = wp->w_cursor.col = 0;
@@ -2786,7 +2786,7 @@
gui_init_which_components(NULL);
#endif
- redraw_all_later(NOT_VALID);
+ redraw_all_later(UPD_NOT_VALID);
return OK;
}
@@ -4075,7 +4075,7 @@
entering_window(curwin);
#endif
- redraw_all_later(NOT_VALID);
+ redraw_all_later(UPD_NOT_VALID);
apply_autocmds(EVENT_WINNEW, NULL, NULL, FALSE, curbuf);
apply_autocmds(EVENT_WINENTER, NULL, NULL, FALSE, curbuf);
apply_autocmds(EVENT_TABNEW, NULL, NULL, FALSE, curbuf);
@@ -4373,7 +4373,7 @@
apply_autocmds(EVENT_BUFENTER, NULL, NULL, FALSE, curbuf);
}
- redraw_all_later(NOT_VALID);
+ redraw_all_later(UPD_NOT_VALID);
}
/*
@@ -4970,7 +4970,7 @@
#endif
redraw_tabline = TRUE;
if (restart_edit)
- redraw_later(VALID); // causes status line redraw
+ redraw_later(UPD_VALID); // causes status line redraw
// set window height to desired minimal value
if (curwin->w_height < p_wh && !curwin->w_p_wfh
@@ -5589,7 +5589,7 @@
// position changed, redraw
wp->w_winrow = *row;
wp->w_wincol = *col;
- redraw_win_later(wp, NOT_VALID);
+ redraw_win_later(wp, UPD_NOT_VALID);
wp->w_redr_status = TRUE;
}
// WinBar will not show if the window height is zero
@@ -5669,7 +5669,7 @@
msg_row = row;
msg_col = 0;
- redraw_all_later(NOT_VALID);
+ redraw_all_later(UPD_NOT_VALID);
}
/*
@@ -5880,7 +5880,7 @@
// recompute the window positions
(void)win_comp_pos();
- redraw_all_later(NOT_VALID);
+ redraw_all_later(UPD_NOT_VALID);
}
/*
@@ -6206,7 +6206,7 @@
cmdline_row = row;
p_ch = MAX(Rows - cmdline_row, p_ch_was_zero ? 0 : 1);
curtab->tp_ch_used = p_ch;
- redraw_all_later(SOME_VALID);
+ redraw_all_later(UPD_SOME_VALID);
showmode();
}
@@ -6312,7 +6312,7 @@
fr = fr->fr_next;
}
(void)win_comp_pos();
- redraw_all_later(NOT_VALID);
+ redraw_all_later(UPD_NOT_VALID);
}
#define FRACTION_MULT 16384L
@@ -6491,7 +6491,7 @@
wp->w_prev_fraction_row = wp->w_wrow;
win_comp_scroll(wp);
- redraw_win_later(wp, SOME_VALID);
+ redraw_win_later(wp, UPD_SOME_VALID);
wp->w_redr_status = TRUE;
invalidate_botline_win(wp);
}
@@ -6511,7 +6511,7 @@
update_topline();
curs_columns(TRUE); // validate w_wrow
}
- redraw_win_later(wp, NOT_VALID);
+ redraw_win_later(wp, UPD_NOT_VALID);
wp->w_redr_status = TRUE;
}
@@ -6692,7 +6692,7 @@
else
win_new_height(wp, wp->w_height - 1);
comp_col();
- redraw_all_later(SOME_VALID);
+ redraw_all_later(UPD_SOME_VALID);
}
}
else if (fr->fr_layout == FR_ROW)
@@ -6984,7 +6984,7 @@
win_comp_pos();
if (wp != NULL && close_curwin)
win_goto(wp);
- redraw_all_later(NOT_VALID);
+ redraw_all_later(UPD_NOT_VALID);
}
clear_snapshot(curtab, idx);
}