diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-17 22:58:53 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-17 22:58:53 +0200 |
commit | bfe377b8f2d080e5f85c8cbecf3533456e1d6312 (patch) | |
tree | d709875e1dfbd342fe59b999cfeaa981761e2f3f /src/drawscreen.c | |
parent | 825cf813fa0fddf085fcbd3194781e875320ff63 (diff) |
patch 9.0.1729: screenpos() wrong when w_skipcol and cpoptions+=nv9.0.1729
Problem: screenpos() wrong result with w_skipcol and cpoptions+=n
Solution: Use adjust_plines_for_skipcol() instead of subtracting
w_skipcol.
closes: #12625
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r-- | src/drawscreen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c index 86fec15026..90e1984e9f 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -1792,7 +1792,8 @@ win_update(win_T *wp) j = wp->w_lines[0].wl_lnum - wp->w_topline; if (j < wp->w_height - 2) // not too far off { - i = plines_m_win(wp, wp->w_topline, wp->w_lines[0].wl_lnum - 1); + i = plines_m_win(wp, wp->w_topline, wp->w_lines[0].wl_lnum - 1, + TRUE); #ifdef FEAT_DIFF // insert extra lines for previously invisible filler lines if (wp->w_lines[0].wl_lnum != wp->w_topline) |