]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Update go.pl
authorferret <redacted>
Sun, 28 Sep 2014 09:04:05 +0000 (10:04 +0100)
committerferret <redacted>
Sun, 28 Sep 2014 09:04:05 +0000 (10:04 +0100)
Change tab completion to match /go but not other command beginning with /go (e.g. /google)

scripts/go.pl

index 3ca6744c082602fee97ea5b54e662cb46aa4eaae..34bf000a0736dffa2bdcca178aa75af91e11e0be 100644 (file)
@@ -24,7 +24,7 @@ sub signal_complete_go {
        my $channel = $window->get_active_name();
        my $k = Irssi::parse_special('$k');
 
-        return unless ($linestart =~ /^\Q${k}\Ego/i);
+        return unless ($linestart =~ /^\Q${k}\Ego\b/i);
 
        @$complist = ();
        foreach my $w (Irssi::windows) {
git clone https://git.99rst.org/PROJECT