From b0176cb54f2a7fdde6e4226e0691c88c1674af34 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Mon, 26 Mar 2001 19:01:58 +0000 Subject: 13779/13783: fixes from Michal Politowski --- Completion/Builtins/_pids | 2 +- Completion/Commands/_complete_tag | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'Completion') 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 -- cgit 1.4.1