summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-07-30 14:57:27 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-07-30 14:57:27 +0000
commiteccd5ca1a3682e4feda3f6bdf1daab2feea0b1b0 (patch)
treeb036e4f291020301932dc45c63be8df0d74cdd38
parentf11ec8fbacc481e06654e31e8b1ff809f731a38f (diff)
downloadzsh-eccd5ca1a3682e4feda3f6bdf1daab2feea0b1b0.tar.gz
zsh-eccd5ca1a3682e4feda3f6bdf1daab2feea0b1b0.zip
users/13077: Max Mikhanosha: restore follow after sort in _path_files
-rw-r--r--ChangeLog9
-rw-r--r--Completion/Unix/Type/_path_files2
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 <pws@csr.com>
+
+ * Max Mikhanosha: users/13077: Completion/Unix/Type/_path_files:
+ fix toggling with `follow' option.
+
2008-07-29 Peter Stephenson <pws@csr.com>
* 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 <p.w.stephenson@ntlworld.com>
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=