aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-26 09:36:26 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-03-28 10:23:17 +0800
commit9ce2c73180b741a7969ede940c3c439d0cc9010d (patch)
tree0ff154adf23c4e7f608dfe1f5d9ce00470f68e7f
parent79dcd045d3623ff71903e2806be489bd5fe3200d (diff)
downloadrneovim-9ce2c73180b741a7969ede940c3c439d0cc9010d.tar.gz
rneovim-9ce2c73180b741a7969ede940c3c439d0cc9010d.tar.bz2
rneovim-9ce2c73180b741a7969ede940c3c439d0cc9010d.zip
revert: "Fix redraw regression with w_p_cole in visual mode"
Revert the code change from b7d6caaa036c3d1be716bb6e4b0f56c08fb8dcf5. The test is kept. The glitch was fixed by #17864, so this workaround is no longer needed.
-rw-r--r--src/nvim/screen.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 67eee55c51..38ea861cbd 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -667,15 +667,11 @@ void conceal_check_cursor_line(void)
/// Whether cursorline is drawn in a special way
///
-/// If true, both old and new cursorline will need
-/// 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.
+/// If true, both old and new cursorline will need to be redrawn when moving cursor within windows.
bool win_cursorline_standout(const win_T *wp)
FUNC_ATTR_NONNULL_ALL
{
- return wp->w_p_cul
- || (wp->w_p_cole > 0 && (VIsual_active || !conceal_cursor_line(wp)));
+ return wp->w_p_cul || (wp->w_p_cole > 0 && !conceal_cursor_line(wp));
}
/*