about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2013-03-14 19:34:32 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2013-03-14 19:34:32 +0000
commita69f05b4cecb800c8d09c9ab94ef18d11ef275e8 (patch)
tree88ea1d2e24c88ed2f51d526feab99c9d0729e7f2 /Completion/Base
parent1d3d92a0c9a5e10228b42ce3a62e8de354748051 (diff)
downloadzsh-a69f05b4cecb800c8d09c9ab94ef18d11ef275e8.tar.gz
zsh-a69f05b4cecb800c8d09c9ab94ef18d11ef275e8.tar.xz
zsh-a69f05b4cecb800c8d09c9ab94ef18d11ef275e8.zip
31151: Pavol Juhas: complete (C etc) tags better
when file system is not case sensitive.
Diffstat (limited to 'Completion/Base')
-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.