From cbe7c603ac4ef31e3170f26a215a5bfd3d20fe9f Mon Sep 17 00:00:00 2001 From: Toby Inkster Date: Fri, 28 Jun 2013 15:01:40 +0100 Subject: stop Autocomplete::Keywords from being overzealous --- lib/Reply/Plugin/Autocomplete/Keywords.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Reply/Plugin/Autocomplete/Keywords.pm b/lib/Reply/Plugin/Autocomplete/Keywords.pm index 1742b87..04b6a17 100644 --- a/lib/Reply/Plugin/Autocomplete/Keywords.pm +++ b/lib/Reply/Plugin/Autocomplete/Keywords.pm @@ -25,6 +25,7 @@ sub tab_handler { my ($before, $last_word) = $line =~ /(.*?)(\w+)$/; return unless $last_word; + return if $before =~ /::$/; # Package::function call return if $before =~ /[\$\@\%\&\*]\s*$/; my $re = qr/^\Q$last_word/; -- cgit v1.2.3-54-g00ecf