Don't use strnvis for the title as it breaks UTF-8. set-titles is now

off by default and we have to trust the terminal can understand what we
send it anyway so there isn't any harm.
pull/1/head
Nicholas Marriott 2011-05-04 17:43:11 +00:00
parent 7dddf56c08
commit b1dfc740a3
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ screen_set_title(struct screen *s, const char *title)
{
char tmp[BUFSIZ];
strnvis(tmp, title, sizeof tmp, VIS_OCTAL|VIS_TAB|VIS_NL);
strlcpy(tmp, title, sizeof tmp);
xfree(s->title);
s->title = xstrdup(tmp);