summaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-22 15:20:32 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-22 15:20:32 +0200
commit0263146b5dbbb6c120ce2e7720256503b864425d (patch)
treeb6f18fde8fd4bbc29c322b414ac584106e512d7a /src/popupmnu.c
parent53f8174eaeb93b381cf74c58863f8fe82748a22a (diff)
downloadvim-git-0263146b5dbbb6c120ce2e7720256503b864425d.tar.gz
patch 8.0.1136: W_WIDTH() is always the samev8.0.1136
Problem: W_WIDTH() is always the same. Solution: Expand the macro.
Diffstat (limited to 'src/popupmnu.c')
-rw-r--r--src/popupmnu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 0467c3984..c2b3e7361 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -190,7 +190,7 @@ redo:
/* Calculate column */
#ifdef FEAT_RIGHTLEFT
if (curwin->w_p_rl)
- col = curwin->w_wincol + W_WIDTH(curwin) - curwin->w_wcol - 1;
+ col = curwin->w_wincol + curwin->w_width - curwin->w_wcol - 1;
else
#endif
col = curwin->w_wincol + curwin->w_wcol;
@@ -312,7 +312,7 @@ pum_redraw(void)
#ifdef FEAT_RIGHTLEFT
if (curwin->w_p_rl)
{
- if (pum_col < curwin->w_wincol + W_WIDTH(curwin) - 1)
+ if (pum_col < curwin->w_wincol + curwin->w_width - 1)
screen_putchar(' ', row, pum_col + 1, attr);
}
else