From: Ailin Nemui Date: Sat, 25 Jun 2016 13:46:46 +0000 (+0200) Subject: uberprompt 0.3 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=f159b467f63d8783aac4da4d0e8dee42145df64d;p=irssi-scripts.irssi.org.git uberprompt 0.3 * fix crash on /window close or /window hide with split windows --- diff --git a/scripts/uberprompt.pl b/scripts/uberprompt.pl index c4b8cc9..8273d8d 100644 --- a/scripts/uberprompt.pl +++ b/scripts/uberprompt.pl @@ -278,7 +278,7 @@ use Data::Dumper; { package Irssi::Nick } # magic. -our $VERSION = "0.2"; # 255b35bb44161e0 +our $VERSION = "0.3"; # 960b4fdf423a081 our %IRSSI = ( authors => "shabble", @@ -627,7 +627,7 @@ sub uberprompt_render_prompt { my $prompt_arg = ''; # default prompt sbar arguments (from config) - if (scalar( () = $window->items )) { + if ($window && scalar( () = $window->items )) { $prompt_arg = '$[.15]{itemname}'; } else { $prompt_arg = '${winname}';