mirror of
https://github.com/tmux/tmux.git
synced 2025-01-15 05:09:04 +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
2
screen.c
2
screen.c
@ -96,7 +96,7 @@ screen_set_title(struct screen *s, const char *title)
|
|||||||
{
|
{
|
||||||
char tmp[BUFSIZ];
|
char tmp[BUFSIZ];
|
||||||
|
|
||||||
strnvis(tmp, title, sizeof tmp, VIS_OCTAL|VIS_TAB|VIS_NL);
|
strlcpy(tmp, title, sizeof tmp);
|
||||||
|
|
||||||
xfree(s->title);
|
xfree(s->title);
|
||||||
s->title = xstrdup(tmp);
|
s->title = xstrdup(tmp);
|
||||||
|
Loading…
Reference in New Issue
Block a user