summaryrefslogtreecommitdiffstats
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index c26cb378ff..64553b1fed 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -2845,7 +2845,7 @@ retnomove:
#endif
row -= W_WINROW(curwin);
- col -= W_WINCOL(curwin);
+ col -= curwin->w_wincol;
/*
* When clicking beyond the end of the window, scroll the screen.