From: Dylan Lloyd Date: Tue, 26 Feb 2019 12:44:26 +0000 (-0500) Subject: typo & syntax fix X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e34843ef167af656a297189c7e39f7d4b0e0a779;p=irssi-scripts.irssi.org.git typo & syntax fix --- diff --git a/scripts/go.pl b/scripts/go.pl index 5907a06..2250707 100644 --- a/scripts/go.pl +++ b/scripts/go.pl @@ -81,7 +81,7 @@ sub cmd_go Irssi::settings_get_bool('go_match_case_sensitive'), Irssi::settings_get_bool('go_match_anchored')); - my @matches = []; + my @matches; foreach my $w (Irssi::windows) { my $name = $w->get_active_name(); if ($name =~ /$re$/) { @@ -92,7 +92,7 @@ sub cmd_go } } if (@matches) { - $matches[0]->set_active() + $matches[0]->set_active(); } }