Problem: Non-printable characters in 'statusline' cause trouble. (ZyX)
Solution: Use transstr(). (partly by Caio Ariede)
# endif
)
{
- int_u text_sign;
+ int text_sign;
# ifdef FEAT_SIGN_ICONS
- int_u icon_sign;
+ int icon_sign;
# endif
/* Draw two cells with the sign value or blank. */
stl, use_sandbox,
fillchar, maxwidth, hltab, tabtab);
vim_free(stl);
- len = (int)STRLEN(buf);
+ /* Make all characters printable. */
+ p = transstr(buf);
+ if (p != NULL)
+ {
+ vim_strncpy(buf, p, sizeof(buf) - 1);
+ vim_free(p);
+ }
+
+ /* fill up with "fillchar" */
+ len = (int)STRLEN(buf);
while (width < maxwidth && len < (int)sizeof(buf) - 1)
{
#ifdef FEAT_MBYTE
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 81,
/**/
80,
/**/