diff terminal-title.py @ 2:c86ca2eea6bc default tip

Allow setting the title to an empty string
author Guido Berhoerster <guido+weechat@berhoerster.name>
date Sat, 14 Mar 2015 16:12:32 +0100
parents 98c1a683d9c1
children
line wrap: on
line diff
--- a/terminal-title.py	Sat Mar 14 16:09:47 2015 +0100
+++ b/terminal-title.py	Sat Mar 14 16:12:32 2015 +0100
@@ -93,10 +93,7 @@
     return ",".join(hotlist_items)
 
 def set_term_title_hook(data, signal, signal_data):
-    title_template_str = weechat.config_get_plugin("title")
-    if not title_template_str:
-        return weechat.WEECHAT_RC_OK
-
+    title_template_str = weechat.config_get_plugin('title')
     title_template = TermTitleTemplate(title_template_str)
     title_str = title_template.safe_substitute(TermTitleMapping())
     sys.__stdout__.write(TERM_TEMPLATE % title_str)