aboutsummaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-06-05 11:59:38 +0100
committerThomas Adam <thomas@xteddy.org>2017-06-05 11:59:38 +0100
commite62e17d0461cfb0bfb55ae3c9c7a3815235298fb (patch)
tree258f2a1e09eb8553842383636a9f6f8a3f75074a /screen.c
parent1c83c0ebcd483c668f02f5f7a8cb80f8a0dc162c (diff)
parent2f04108f3a35271ef60b3028699b6363e1714140 (diff)
downloadrtmux-e62e17d0461cfb0bfb55ae3c9c7a3815235298fb.tar.gz
rtmux-e62e17d0461cfb0bfb55ae3c9c7a3815235298fb.tar.bz2
rtmux-e62e17d0461cfb0bfb55ae3c9c7a3815235298fb.zip
Merge branch 'obsd-master'
Conflicts: tmux.1 window.c
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 087611ae..ebd117a0 100644
--- a/screen.c
+++ b/screen.c
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <vis.h>
#include "tmux.h"
@@ -107,7 +108,7 @@ void
screen_set_title(struct screen *s, const char *title)
{
free(s->title);
- s->title = xstrdup(title);
+ utf8_stravis(&s->title, title, VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL);
}
/* Resize screen. */