]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Changed the @windows test to defined $win[0] to match master branch. Supposedly it...
authorIsaacG <redacted>
Thu, 26 May 2011 23:17:59 +0000 (19:17 -0400)
committerbw1 <redacted>
Mon, 8 Jan 2018 18:23:33 +0000 (19:23 +0100)
scripts/ack.pl

index 72883d5e6af82d91d4e6eb5f424176528495adcb..42d9ba28d42d9d9078eed8f01e5ccb19dd0f13f9 100644 (file)
@@ -157,7 +157,7 @@ sub cmd_ack
        }
 
        # Jump to the first window.  How hard can it be?
-       $windows[0]->set_active() if @windows;
+       $windows[0]->set_active() if (defined $windows[0]);
 }
  
 # Add a refnum to the high priority list
git clone https://git.99rst.org/PROJECT