From f159b467f63d8783aac4da4d0e8dee42145df64d Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Sat, 25 Jun 2016 15:46:46 +0200 Subject: uberprompt 0.3 * fix crash on /window close or /window hide with split windows --- scripts/uberprompt.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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}'; -- cgit v1.2.3