move: assert nonnull wp pointer

This commit is contained in:
Jan Edmund Lazo
2019-07-20 19:51:32 -04:00
parent 54d9ea61ab
commit a63b95b315
2 changed files with 19 additions and 14 deletions

View File

@@ -104,6 +104,7 @@ void reset_cursorline(void)
// Redraw when w_cline_row changes and 'relativenumber' or 'cursorline' is set.
void redraw_for_cursorline(win_T *wp)
FUNC_ATTR_NONNULL_ALL
{
if ((wp->w_p_rnu || win_cursorline_standout(wp))
&& (wp->w_valid & VALID_CROW) == 0