From a69f05b4cecb800c8d09c9ab94ef18d11ef275e8 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 14 Mar 2013 19:34:32 +0000 Subject: 31151: Pavol Juhas: complete (C etc) tags better when file system is not case sensitive. --- Completion/Base/Widget/_complete_tag | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Completion/Base/Widget') 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. -- cgit 1.4.1