aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--prompt_info/uberprompt.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/prompt_info/uberprompt.pl b/prompt_info/uberprompt.pl
index 45a5d0b..390e8e5 100644
--- a/prompt_info/uberprompt.pl
+++ b/prompt_info/uberprompt.pl
@@ -149,7 +149,7 @@ sub init {
Irssi::statusbar_item_register('uberprompt', 0, 'uberprompt_draw');
- Irssi::settings_add_str('uberprompt', 'uberprompt_format', '[$* $uber] ');
+ Irssi::settings_add_str('uberprompt', 'uberprompt_format', '[$*$uber] ');
Irssi::settings_add_bool('uberprompt', 'uberprompt_debug', 0);
Irssi::settings_add_bool('uberprompt', 'uberprompt_autostart', 1);
@@ -173,6 +173,12 @@ sub init {
# intialise the prompt format.
reload_settings();
+ # make sure we redraw when necessary.
+ Irssi::signal_add('window changed', \&uberprompt_draw);
+ Irssi::signal_add('window name changed', \&uberprompt_draw);
+ Irssi::signal_add('window changed automatic', \&uberprompt_draw);
+ Irssi::signal_add('window item changed', \&uberprompt_draw);
+
# install our statusbars if required.
if (Irssi::settings_get_bool('uberprompt_autostart')) {
replace_prompt_items();