Mercurial > vim
comparison src/change.c @ 32439:9d072cccc8fc v9.0.1551
patch 9.0.1551: position of marker for 'smoothscroll' not computed correctly
Commit: https://github.com/vim/vim/commit/24b62ec8258cc7c9ca2c09f645f7f6b02584c892
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Sat May 13 14:12:15 2023 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 May 2023 15:15:03 +0200 |
parents | 667d85c09e9c |
children | 448aef880252 |
comparison
equal
deleted
inserted
replaced
32438:f67f4f91eeaf | 32439:9d072cccc8fc |
---|---|
566 && (last < wp->w_topline | 566 && (last < wp->w_topline |
567 || (wp->w_topline >= lnum | 567 || (wp->w_topline >= lnum |
568 && wp->w_topline < lnume | 568 && wp->w_topline < lnume |
569 && win_linetabsize(wp, wp->w_topline, | 569 && win_linetabsize(wp, wp->w_topline, |
570 ml_get(wp->w_topline), (colnr_T)MAXCOL) | 570 ml_get(wp->w_topline), (colnr_T)MAXCOL) |
571 <= wp->w_skipcol + (wp->w_p_list | 571 <= wp->w_skipcol + sms_marker_overlap(wp, |
572 && wp->w_lcs_chars.prec ? 1 : 3)))) | 572 win_col_off(wp) - win_col_off2(wp))))) |
573 wp->w_skipcol = 0; | 573 wp->w_skipcol = 0; |
574 | 574 |
575 // Check if a change in the buffer has invalidated the cached | 575 // Check if a change in the buffer has invalidated the cached |
576 // values for the cursor. | 576 // values for the cursor. |
577 #ifdef FEAT_FOLDING | 577 #ifdef FEAT_FOLDING |