0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.0-223

This commit is contained in:
Bram Moolenaar 2007-03-27 10:42:05 +00:00
parent 39353fdbec
commit 7cc36e9402
3 changed files with 18 additions and 3 deletions

View File

@ -317,7 +317,8 @@ trans_characters(buf, bufsize)
} }
} }
#if defined(FEAT_EVAL) || defined(FEAT_TITLE) || defined(PROTO) #if defined(FEAT_EVAL) || defined(FEAT_TITLE) || defined(FEAT_INS_EXPAND) \
|| defined(PROTO)
/* /*
* Translate a string into allocated memory, replacing special chars with * Translate a string into allocated memory, replacing special chars with
* printable chars. Returns NULL when out of memory. * printable chars. Returns NULL when out of memory.

View File

@ -280,8 +280,20 @@ pum_redraw()
w = ptr2cells(p); w = ptr2cells(p);
if (*p == NUL || *p == TAB || totwidth + w > pum_width) if (*p == NUL || *p == TAB || totwidth + w > pum_width)
{ {
/* Display the text that fits or comes before a Tab. */ /* Display the text that fits or comes before a Tab.
screen_puts_len(s, (int)(p - s), row, col, attr); * 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; col += width;
if (*p != TAB) if (*p != TAB)

View File

@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
223,
/**/ /**/
222, 222,
/**/ /**/