summaryrefslogtreecommitdiffstats
path: root/src/change.c
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-05-13 14:12:15 +0100
committerBram Moolenaar <Bram@vim.org>2023-05-13 14:12:15 +0100
commit24b62ec8258cc7c9ca2c09f645f7f6b02584c892 (patch)
tree3bcce2f1683b60a997e08394a20884d9744d37d0 /src/change.c
parent81f277f52664031a56aeabe889f1c36402316dba (diff)
patch 9.0.1551: position of marker for 'smoothscroll' not computed correctlyv9.0.1551
Problem: Position of marker for 'smoothscroll' not computed correctly. Solution: Take 'list' and other options into account. (Luuk van Baal, closes #12393)
Diffstat (limited to 'src/change.c')
-rw-r--r--src/change.c4
1 files changed, 2 insertions, 2 deletions
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