vim-patch:9.0.1551: position of marker for 'smoothscroll' not computed correctly (#23617)

Problem:    Position of marker for 'smoothscroll' not computed correctly.
Solution:   Take 'list' and other options into account. (Luuk van Baal,
            closes vim/vim#12393)

24b62ec825
This commit is contained in:
luukvbaal
2023-05-14 00:03:03 +02:00
committed by GitHub
parent 08991b0782
commit edfa8d6f2f
3 changed files with 33 additions and 18 deletions

View File

@@ -257,7 +257,8 @@ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume, linenr_T
|| (wp->w_topline >= lnum
&& wp->w_topline < lnume
&& win_linetabsize(wp, wp->w_topline, ml_get(wp->w_topline), (colnr_T)MAXCOL)
<= (unsigned)wp->w_skipcol + (wp->w_p_list && wp->w_p_lcs_chars.prec ? 1 : 3)))) {
<= (unsigned)(wp->w_skipcol + sms_marker_overlap(wp, win_col_off(wp)
- win_col_off2(wp)))))) {
wp->w_skipcol = 0;
}