From eccd5ca1a3682e4feda3f6bdf1daab2feea0b1b0 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 30 Jul 2008 14:57:27 +0000 Subject: users/13077: Max Mikhanosha: restore follow after sort in _path_files --- ChangeLog | 9 +++++++-- Completion/Unix/Type/_path_files | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2c2b627ff..d9cf20cca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,14 @@ +2008-07-30 Peter Stephenson + + * Max Mikhanosha: users/13077: Completion/Unix/Type/_path_files: + fix toggling with `follow' option. + 2008-07-29 Peter Stephenson * 25346: Completion/compdump: fix some variables. - * Max Mikhanosha: users/13072: add `follow' option to - file-sort style. + * Max Mikhanosha: users/13072: Completion/Unix/Type/_path_files: + add `follow' option to file-sort style. 2008-07-27 Peter Stephenson diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 53c0f2a4a..23f88aaec 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -123,7 +123,7 @@ if zstyle -s ":completion:${curcontext}:" file-sort tmp1; then *) sort=on;; esac [[ "$tmp1" = *rev* ]] && sort[1]=O - [[ "$tmp1" = *follow* ]] && sort="-$sort" + [[ "$tmp1" = *follow* ]] && sort="-${sort}-" if [[ "$sort" = on ]]; then sort= -- cgit v1.2.3-70-g09d2