summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index bb41f362f..15ab7cf97 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -2800,7 +2800,11 @@ mouse_comp_pos(win, rowp, colp, lnump)
{
#ifdef FEAT_DIFF
/* Don't include filler lines in "count" */
- if (win->w_p_diff && !hasFoldingWin(win, lnum, NULL, NULL, TRUE, NULL))
+ if (win->w_p_diff
+# ifdef FEAT_FOLDING
+ && !hasFoldingWin(win, lnum, NULL, NULL, TRUE, NULL)
+# endif
+ )
{
if (lnum == win->w_topline)
row -= win->w_topfill;