]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
typo & syntax fix
authorDylan Lloyd <redacted>
Tue, 26 Feb 2019 12:44:26 +0000 (07:44 -0500)
committerDylan Lloyd <redacted>
Tue, 26 Feb 2019 12:44:26 +0000 (07:44 -0500)
scripts/go.pl

index 5907a0628ad721a809ee13655c8a6c3f637ba554..2250707a835b93e11e372b545de40bac9e3c2110 100644 (file)
@@ -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();
        }
 }
 
git clone https://git.99rst.org/PROJECT