diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Builtins/_pids | 2 | ||||
-rw-r--r-- | Completion/Commands/_complete_tag | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Builtins/_pids b/Completion/Builtins/_pids index ad15031b6..b298322e2 100644 --- a/Completion/Builtins/_pids +++ b/Completion/Builtins/_pids @@ -13,7 +13,7 @@ if [[ "$1" = -m ]]; then shift 2 elif [[ "$PREFIX$SUFFIX" = ([%-]*|[0-9]#) ]]; then all=() - match="*[[:blank:]]${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*" + match="(*[[:blank:]]|)${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*" else all=(-U) match="*[[:blank:]]*[[/[:blank:]]$PREFIX*$SUFFIX*" diff --git a/Completion/Commands/_complete_tag b/Completion/Commands/_complete_tag index 4470a2ad4..61641271f 100644 --- a/Completion/Commands/_complete_tag +++ b/Completion/Commands/_complete_tag @@ -46,11 +46,12 @@ if [[ -f $c_path$c_Tagsfile ]]; then # c_tags_array=($(perl -ne '/([a-zA-Z_0-9]+)[ \t:;,\(]*\x7f/ && # print "$1\n"' $c_path$c_Tagsfile)) _main_complete - '' _wanted etags expl 'emacs tags' \ + compadd -a c_tags_array -elif [[ -f $c_tagspath ]]; then +elif [[ -f $c_path$c_tagsfile ]]; then # tags doesn't have as much in, but the tag is easy to find. # we can use awk here. - c_tags_array=($(awk '{ print $1 }' $c_path$c_Tagsfile)) + c_tags_array=($(awk '{ print $1 }' $c_path$c_tagsfile)) _main_complete - '' _wanted vtags expl 'vi tags' compadd -a c_tags_array else return 1 |