about summary refs log tree commit diff
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-06-02 17:15:48 -0500
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-06-09 10:05:07 +0200
commite60620bc2f1392a938e945d2f09d9b8d8f9e11bc (patch)
treebb806698c54f3fb5f2e2ce99c63996197e8ce0bc
parent9767ee88495d49df36b54b6fc58232ad76f8b020 (diff)
downloadzsh-e60620bc2f1392a938e945d2f09d9b8d8f9e11bc.tar.gz
zsh-e60620bc2f1392a938e945d2f09d9b8d8f9e11bc.tar.xz
zsh-e60620bc2f1392a938e945d2f09d9b8d8f9e11bc.zip
42918: fix file completion for jq
-rw-r--r--ChangeLog2
-rw-r--r--Completion/Unix/Command/_jq2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 370d90b86..c9e49719b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2018-06-09  Oliver Kiddle  <okiddle@yahoo.co.uk>
 
+	* 42918: dana: Completion/Unix/Command/_jq: fix file completion
+
 	* 42918: dana: Completion/Unix/Command/_ldd: adapt detection of
 	GNU variant to work on Ubuntu
 
diff --git a/Completion/Unix/Command/_jq b/Completion/Unix/Command/_jq
index 55bb93c04..4ff05dab4 100644
--- a/Completion/Unix/Command/_jq
+++ b/Completion/Unix/Command/_jq
@@ -31,4 +31,4 @@ _arguments -S -s : \
   '*--argjson[pre-set a variable to an object]: :_guard "|[A-Za-z][A-Za-z0-9]#" "variable name":value (JSON): ' \
   '*--slurpfile[pre-set a variable to contents of a file]: :_guard "|[A-Za-z][A-Za-z0-9]#" "variable name":value (filename of file containing JSON):_files' \
   "1: :_guard '|[^-]' filter" \
-  "*:_files"
+  "*: :_files"