]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
uberprompt 0.3
authorAilin Nemui <redacted>
Sat, 25 Jun 2016 13:46:46 +0000 (15:46 +0200)
committerAilin Nemui <redacted>
Sat, 25 Jun 2016 13:46:46 +0000 (15:46 +0200)
* fix crash on /window close or /window hide with split windows

scripts/uberprompt.pl

index c4b8cc938a722250eb29557f4a922cb793dc851b..8273d8d567a3815c70be95594646e1d8901164e7 100644 (file)
@@ -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}';
git clone https://git.99rst.org/PROJECT