diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-13 22:15:53 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-13 22:15:53 +0000 |
commit | 1e60789f9b8e1b839b3bafe40183aa75a9a7db54 (patch) | |
tree | 91c6858978c02d803828463462f71fecc4693cda /src/popupmenu.c | |
parent | 019ff6825b54e31efc71faf3ce55cb78bac24d35 (diff) | |
download | vim-git-1e60789f9b8e1b839b3bafe40183aa75a9a7db54.tar.gz |
updated for version 7.0223
Diffstat (limited to 'src/popupmenu.c')
-rw-r--r-- | src/popupmenu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/popupmenu.c b/src/popupmenu.c index 752f1832d..1ca03726d 100644 --- a/src/popupmenu.c +++ b/src/popupmenu.c @@ -65,7 +65,12 @@ redo: kind_width = 0; extra_width = 0; + /* Pretend the pum is already there to avoid that must_redraw is set when + * 'cuc' is on. */ + pum_array = (pumitem_T *)1; validate_cursor_col(); + pum_array = NULL; + row = curwin->w_cline_row + W_WINROW(curwin); height = curwin->w_cline_height; col = curwin->w_wcol + W_WINCOL(curwin) - curwin->w_leftcol; @@ -137,7 +142,7 @@ redo: } if (array[i].pum_extra != NULL) { - w = vim_strsize(array[i].pum_extra + 1); + w = vim_strsize(array[i].pum_extra) + 1; if (extra_width < w) extra_width = w; } |