about summary refs log tree commit diff
path: root/Completion/Commands/_complete_tag
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Commands/_complete_tag')
-rw-r--r--Completion/Commands/_complete_tag5
1 files changed, 3 insertions, 2 deletions
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