// the line number itself.
// TODO: Can we use CursorLine instead of CursorLineNr
// when CursorLineNr isn't set?
- if ((wp->w_p_cul || wp->w_p_rnu)
+ if (wp->w_p_cul
+ && lnum == wp->w_cursor.lnum
&& (wp->w_p_culopt_flags & CULOPT_NBR)
&& (row == startrow
- || wp->w_p_culopt_flags & CULOPT_LINE)
- && lnum == wp->w_cursor.lnum)
+ || wp->w_p_culopt_flags & CULOPT_LINE))
char_attr = hl_combine_attr(wcr_attr, HL_ATTR(HLF_CLN));
#endif
}
setl nocursorline relativenumber
redraw
let attr31 = s:screen_attr(1)
- call assert_equal(attr21[0:3], attr31[0:3])
+ call assert_equal(attr22[0:3], attr31[0:3])
call assert_equal(attr11[4:7], attr31[4:7])
call s:close_windows()