From 24b62ec8258cc7c9ca2c09f645f7f6b02584c892 Mon Sep 17 00:00:00 2001 From: Luuk van Baal Date: Sat, 13 May 2023 14:12:15 +0100 Subject: patch 9.0.1551: position of marker for 'smoothscroll' not computed correctly Problem: Position of marker for 'smoothscroll' not computed correctly. Solution: Take 'list' and other options into account. (Luuk van Baal, closes #12393) --- src/change.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/change.c') diff --git a/src/change.c b/src/change.c index 8bb61ed148..c0b8785ba1 100644 --- a/src/change.c +++ b/src/change.c @@ -568,8 +568,8 @@ changed_common( && wp->w_topline < lnume && win_linetabsize(wp, wp->w_topline, ml_get(wp->w_topline), (colnr_T)MAXCOL) - <= wp->w_skipcol + (wp->w_p_list - && wp->w_lcs_chars.prec ? 1 : 3)))) + <= wp->w_skipcol + sms_marker_overlap(wp, + win_col_off(wp) - win_col_off2(wp))))) wp->w_skipcol = 0; // Check if a change in the buffer has invalidated the cached -- cgit v1.2.3