diff options
author | Toby Inkster <mail@tobyinkster.co.uk> | 2013-06-28 15:01:40 +0100 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-06-28 10:39:12 -0400 |
commit | cbe7c603ac4ef31e3170f26a215a5bfd3d20fe9f (patch) | |
tree | 17c57e38e3957e937340a61912fb2a785d819aa8 | |
parent | 0453bcc55e9d226298d37fe2d1fdab74659758b5 (diff) | |
download | reply-cbe7c603ac4ef31e3170f26a215a5bfd3d20fe9f.tar.gz reply-cbe7c603ac4ef31e3170f26a215a5bfd3d20fe9f.zip |
stop Autocomplete::Keywords from being overzealous
-rw-r--r-- | lib/Reply/Plugin/Autocomplete/Keywords.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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/; |