summaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-22 14:35:51 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-22 14:35:51 +0200
commit53f8174eaeb93b381cf74c58863f8fe82748a22a (patch)
tree8f60614e9840f38bd2a05a48809bb7b29adc26b1 /src/popupmnu.c
parent76301956f0c079d893cfd927b11456328bed4f9b (diff)
downloadvim-git-53f8174eaeb93b381cf74c58863f8fe82748a22a.tar.gz
patch 8.0.1135: W_WINCOL() is always the samev8.0.1135
Problem: W_WINCOL() is always the same. Solution: Expand the macro.
Diffstat (limited to 'src/popupmnu.c')
-rw-r--r--src/popupmnu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 23e871190..0467c3984 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -190,10 +190,10 @@ redo:
/* 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 @@ pum_redraw(void)
#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