summaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/popupmnu.c')
-rw-r--r--src/popupmnu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c
index fcc7d851e..10a5edf27 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -183,11 +183,10 @@ redo:
/* Calculate column */
#ifdef FEAT_RIGHTLEFT
if (curwin->w_p_rl)
- col = W_WINCOL(curwin) + W_WIDTH(curwin) - curwin->w_wcol -
- curwin->w_leftcol - 1;
+ col = W_WINCOL(curwin) + W_WIDTH(curwin) - curwin->w_wcol - 1;
else
#endif
- col = W_WINCOL(curwin) + curwin->w_wcol - curwin->w_leftcol;
+ col = W_WINCOL(curwin) + curwin->w_wcol;
/* if there are more items than room we need a scrollbar */
if (pum_height < size)