diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-22 15:20:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-22 15:20:32 +0200 |
commit | 0263146b5dbbb6c120ce2e7720256503b864425d (patch) | |
tree | b6f18fde8fd4bbc29c322b414ac584106e512d7a /src/popupmnu.c | |
parent | 53f8174eaeb93b381cf74c58863f8fe82748a22a (diff) | |
download | vim-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.c | 4 |
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 |