summary refs log tree commit diff
path: root/Completion/Base/Widget
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/Widget')
-rw-r--r--Completion/Base/Widget/_complete_tag5
1 files changed, 5 insertions, 0 deletions
diff --git a/Completion/Base/Widget/_complete_tag b/Completion/Base/Widget/_complete_tag
index 5a26c3890..5b50f1d85 100644
--- a/Completion/Base/Widget/_complete_tag
+++ b/Completion/Base/Widget/_complete_tag
@@ -32,6 +32,11 @@ while [[ ! -f $c_path$c_Tagsfile &&
   c_path=../$c_path
 done
 
+if [[ -f $c_path$c_Tagsfile && $c_path$c_Tagsfile -ef $c_path$c_tagsfile &&
+      "$(head -1 $c_path$c_tagsfile)" == '!_TAG_'* ]]; then
+        c_Tagsfile=
+fi
+
 if [[ -f $c_path$c_Tagsfile ]]; then
   # prefer the more comprehensive TAGS, which unfortunately is a
   # little harder to parse.