summaryrefslogtreecommitdiffstats
path: root/src/move.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/move.c b/src/move.c
index 954a13714d..fde7f20e25 100644
--- a/src/move.c
+++ b/src/move.c
@@ -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)
{