diff options
Diffstat (limited to 'prompt_info')
-rw-r--r-- | prompt_info/prompt_replace.pl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/prompt_info/prompt_replace.pl b/prompt_info/prompt_replace.pl index 20fb7b1..30120f7 100644 --- a/prompt_info/prompt_replace.pl +++ b/prompt_info/prompt_replace.pl @@ -125,11 +125,11 @@ sub init { # install our statusbars. replace_prompt_items(); - # the actual API signal. + # the actual API signals. Irssi::signal_register({'change prompt' => [qw/string/]}); Irssi::signal_add('change prompt' => \&change_prompt_sig); - + Irssi::signal_register({'prompt changed' => [qw/string int/]}); } sub change_prompt_sig { @@ -191,7 +191,11 @@ sub uberprompt_draw { $prompt_item = $sb_item; - $sb_item->default_handler($get_size_only, $p_copy, '', 0); + my $ret = $sb_item->default_handler($get_size_only, $p_copy, '', 0); + + Irssi::signal_emit('prompt changed', $p_copy, $sb_item->{size}); + + return $ret; } sub augment_redraw { |