1
0
forked from aniani/vim

patch 9.0.1016: screenpos() does not count filler lines for diff mode

Problem:    screenpos() does not count filler lines for diff mode.
Solution:   Add filler lines. (closes 11658)
This commit is contained in:
Bram Moolenaar
2022-12-05 22:26:44 +00:00
parent f0a9c00482
commit 1cb16c3a20
3 changed files with 24 additions and 0 deletions

View File

@@ -1426,6 +1426,12 @@ textpos2screenpos(
is_folded = hasFoldingWin(wp, lnum, &lnum, NULL, TRUE, NULL);
#endif
row = plines_m_win(wp, wp->w_topline, lnum - 1) + 1;
#ifdef FEAT_DIFF
// Add filler lines above this buffer line.
row += diff_check_fill(wp, lnum);
#endif
#ifdef FEAT_FOLDING
if (is_folded)
{