summaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-03-27 10:42:05 +0000
committerBram Moolenaar <Bram@vim.org>2007-03-27 10:42:05 +0000
commit7cc36e9402bd8e34bca88df499b2d94fdb4cc4fb (patch)
treebb7da97ff63266fc46ec0de2a63f5ddd9e23293a /src/popupmnu.c
parent39353fdbec5558d5faa33cf35ff30ab96e2c366b (diff)
downloadvim-git-7cc36e9402bd8e34bca88df499b2d94fdb4cc4fb.tar.gz
updated for version 7.0-223v7.0.223
Diffstat (limited to 'src/popupmnu.c')
-rw-r--r--src/popupmnu.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c
index f280ff25d..7d2e13795 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -280,8 +280,20 @@ pum_redraw()
w = ptr2cells(p);
if (*p == NUL || *p == TAB || totwidth + w > pum_width)
{
- /* Display the text that fits or comes before a Tab. */
- screen_puts_len(s, (int)(p - s), row, col, attr);
+ /* Display the text that fits or comes before a Tab.
+ * First convert it to printable characters. */
+ char_u *st;
+ int saved = *p;
+
+ *p = NUL;
+ st = transstr(s);
+ *p = saved;
+ if (st != NULL)
+ {
+ screen_puts_len(st, (int)STRLEN(st), row, col,
+ attr);
+ vim_free(st);
+ }
col += width;
if (*p != TAB)