diff options
Diffstat (limited to 'lib/Reply/Plugin/Autocomplete/Keywords.pm')
-rw-r--r-- | lib/Reply/Plugin/Autocomplete/Keywords.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Reply/Plugin/Autocomplete/Keywords.pm b/lib/Reply/Plugin/Autocomplete/Keywords.pm index 85bfe1e..b3ec05a 100644 --- a/lib/Reply/Plugin/Autocomplete/Keywords.pm +++ b/lib/Reply/Plugin/Autocomplete/Keywords.pm @@ -23,8 +23,9 @@ sub tab_handler { my $self = shift; my ($line) = @_; - my ($last_word) = $line =~ /(\w+)$/; + my ($before, $last_word) = $line =~ /(.*?)(\w+)$/; return unless $last_word; + return if $before =~ /[\$\@\%\&\*]\s*$/; my $re = qr/^\Q$last_word/; |