mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user