patch 8.0.1135: W_WINCOL() is always the same
Problem: W_WINCOL() is always the same.
Solution: Expand the macro.
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 23e8711..0467c39 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -190,10 +190,10 @@
/* Calculate column */
#ifdef FEAT_RIGHTLEFT
if (curwin->w_p_rl)
- col = W_WINCOL(curwin) + W_WIDTH(curwin) - curwin->w_wcol - 1;
+ col = curwin->w_wincol + W_WIDTH(curwin) - curwin->w_wcol - 1;
else
#endif
- col = W_WINCOL(curwin) + curwin->w_wcol;
+ col = curwin->w_wincol + curwin->w_wcol;
/* if there are more items than room we need a scrollbar */
if (pum_height < size)
@@ -312,7 +312,7 @@
#ifdef FEAT_RIGHTLEFT
if (curwin->w_p_rl)
{
- if (pum_col < W_WINCOL(curwin) + W_WIDTH(curwin) - 1)
+ if (pum_col < curwin->w_wincol + W_WIDTH(curwin) - 1)
screen_putchar(' ', row, pum_col + 1, attr);
}
else