revert: "Fix redraw regression with w_p_cole in visual mode"

Revert the code change from b7d6caaa03.
The test is kept.
The glitch was fixed by #17864, so this workaround is no longer needed.
This commit is contained in:
zeertzjq
2022-03-26 09:36:26 +08:00
parent 79dcd045d3
commit 9ce2c73180

View File

@@ -667,15 +667,11 @@ void conceal_check_cursor_line(void)
/// Whether cursorline is drawn in a special way /// Whether cursorline is drawn in a special way
/// ///
/// If true, both old and new cursorline will need /// If true, both old and new cursorline will need to be redrawn when moving cursor within windows.
/// to be redrawn when moving cursor within windows.
/// TODO(bfredl): VIsual_active shouldn't be needed, but is used to fix a glitch
/// caused by scrolling.
bool win_cursorline_standout(const win_T *wp) bool win_cursorline_standout(const win_T *wp)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_ALL
{ {
return wp->w_p_cul return wp->w_p_cul || (wp->w_p_cole > 0 && !conceal_cursor_line(wp));
|| (wp->w_p_cole > 0 && (VIsual_active || !conceal_cursor_line(wp)));
} }
/* /*