diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2013-03-14 19:34:32 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2013-03-14 19:34:32 +0000 |
| commit | a69f05b4cecb800c8d09c9ab94ef18d11ef275e8 (patch) | |
| tree | 88ea1d2e24c88ed2f51d526feab99c9d0729e7f2 /Completion/Base | |
| parent | 31140: avoid crash when hitting recursion limit (diff) | |
| download | zsh-a69f05b4cecb800c8d09c9ab94ef18d11ef275e8.tar zsh-a69f05b4cecb800c8d09c9ab94ef18d11ef275e8.tar.gz zsh-a69f05b4cecb800c8d09c9ab94ef18d11ef275e8.tar.bz2 zsh-a69f05b4cecb800c8d09c9ab94ef18d11ef275e8.tar.lz zsh-a69f05b4cecb800c8d09c9ab94ef18d11ef275e8.tar.xz zsh-a69f05b4cecb800c8d09c9ab94ef18d11ef275e8.tar.zst 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_tag | 5 |
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. |
