summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-01-17 18:03:26 +0000
committerPeter Stephenson <pws@zsh.org>2017-01-17 18:03:26 +0000
commit60a4f6cb67c8872379331aab606985525f978779 (patch)
tree1d816df0ce8df1dc6167fe755b82a1f1c5a0c300
parentc2f1951ba3e18f8da62cfcb2deb085f2ee1f8d5b (diff)
downloadzsh-60a4f6cb67c8872379331aab606985525f978779.tar.gz
zsh-60a4f6cb67c8872379331aab606985525f978779.tar.xz
zsh-60a4f6cb67c8872379331aab606985525f978779.zip
unposted: "autooad ~..." also completes file
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Zsh/Command/_typeset2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e478b27ac..1a4b4c2ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-17  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* unposted: Completion/Zsh/Command/_typeset: autoload ~... also
+	completes file.
+
 2017-01-16  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* 40372: Completion/compinit: turn off POSIX_IDENTIFIERS option
diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset
index 0961e985c..160150234 100644
--- a/Completion/Zsh/Command/_typeset
+++ b/Completion/Zsh/Command/_typeset
@@ -93,7 +93,7 @@ if [[ "$state" = vars_eq ]]; then
     elif (( $+opt_args[-w] )); then
       _wanted files expl 'zwc file' _files -g '*.zwc(-.)'
     elif [[ $service = autoload || -n $opt_args[(i)-[uU]] ]]; then
-      if [[ $PREFIX[1] = / ]]; then
+      if [[ $PREFIX[1] = [/~] ]]; then
 	# Autoload by absolute path
 	_files
       else