mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
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.
This commit is contained in:
parent
7dddf56c08
commit
b1dfc740a3
1 changed files with 1 additions and 1 deletions
2
screen.c
2
screen.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue