summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-02-07 14:07:51 +0100
committerSébastien Helleu <flashcode@flashtux.org>2016-02-07 14:07:51 +0100
commitc9a8f23cc78546412bc645d68b344d867ee85bc6 (patch)
tree4f6ba5ff6514c1b474af337249fc2a56d80ac369 /src
parentf9ce19a01dec2d08d6184c0eb110b6939d8e50ca (diff)
downloadweechat-c9a8f23cc78546412bc645d68b344d867ee85bc6.zip
core: fix update of window title under tmux (closes #685)
Diffstat (limited to 'src')
-rw-r--r--src/gui/curses/gui-curses-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c
index 20856b3d9..aa96c397c 100644
--- a/src/gui/curses/gui-curses-window.c
+++ b/src/gui/curses/gui-curses-window.c
@@ -2467,7 +2467,8 @@ gui_window_set_title (const char *title)
{
printf ("\33]0;%s\7", new_title);
}
- else if (strncmp (envterm, "screen", 6) == 0)
+ else if ((strncmp (envterm, "screen", 6) == 0)
+ || (strncmp (envterm, "tmux", 4) == 0))
{
if (title && title[0])
{