aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-11-08 19:55:57 +0000
committerTom Feist <shabble@metavore.org>2010-11-08 19:55:57 +0000
commit622ac229fa221424b745fc9986351a90e4b24b99 (patch)
tree7777f60f328438932997d059525f68a82b04948c
parenttest_harness: cleaned up makefile, added note to de-OSXify it later (diff)
downloadirssi-scripts-622ac229fa221424b745fc9986351a90e4b24b99.tar.gz
irssi-scripts-622ac229fa221424b745fc9986351a90e4b24b99.zip
fix for prompt_ifno users upgrading to uberprompt without restart (hopefully)
-rw-r--r--prompt_info/uberprompt.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/prompt_info/uberprompt.pl b/prompt_info/uberprompt.pl
index 23786ab..9aa75b8 100644
--- a/prompt_info/uberprompt.pl
+++ b/prompt_info/uberprompt.pl
@@ -266,6 +266,9 @@ sub debug_prompt_changed {
sub change_prompt_handler {
my ($text, $pos) = @_;
+ # fix for people who used prompt_info and hence the signal won't
+ # pass the second argument.
+ $pos = 'UP_INNER' unless defined $pos;
print "Got prompt change signal with: $text, $pos" if DEBUG;
my ($changed_text, $changed_pos);