diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-07-10 10:15:45 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-07-10 10:15:45 -0400 |
commit | f6d24b6c06464b1c0aaf578ce0aaff302a015763 (patch) | |
tree | 788a79be93b31b3ea5fb093453b9ff911a308f3d | |
parent | aca6b6aab8ffcbea8cdcb97661025279e1d888c3 (diff) | |
download | reply-f6d24b6c06464b1c0aaf578ce0aaff302a015763.tar.gz reply-f6d24b6c06464b1c0aaf578ce0aaff302a015763.zip |
avoid completing functions for commands
-rw-r--r-- | lib/Reply/Plugin/Autocomplete/Functions.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Reply/Plugin/Autocomplete/Functions.pm b/lib/Reply/Plugin/Autocomplete/Functions.pm index 257cacf..205841e 100644 --- a/lib/Reply/Plugin/Autocomplete/Functions.pm +++ b/lib/Reply/Plugin/Autocomplete/Functions.pm @@ -27,6 +27,7 @@ sub tab_handler { my ($before, $fragment) = $line =~ /(.*?)(${module_name_rx}(::)?)$/; return unless $fragment; + return if $before =~ /^#/; # commands my $current_package = ($self->publish('package'))[-1]; |