From 6c06bc858315a0802c0b901555873de4eccaf966 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sun, 10 Oct 2010 21:47:40 +0100 Subject: re-added additional signals to refresh prompt when needed --- prompt_info/uberprompt.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'prompt_info/uberprompt.pl') 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(); -- cgit v1.2.3