summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Zsh/Command/_read5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Zsh/Command/_read b/Completion/Zsh/Command/_read
index d94e8b65f..46fdb2de6 100644
--- a/Completion/Zsh/Command/_read
+++ b/Completion/Zsh/Command/_read
@@ -9,8 +9,9 @@ local pflag
 _arguments -s -A "-*" -S \
   '-r[raw mode]' \
   '(-p -k -s -u -z)-q[read y or n character from terminal]' \
-  '(-q)-k+[specify number of characters to read]:number of characters' \
-  '(-q -s -u -p)-z[read entry from editor buffer stack]' \
+  '(-q)-k+[specify number of characters to read]:: :_guard "[0-9]#" "number of characters"' \
+  '(-q -z)-t+[test if input is available before reading]:: :_guard "[0-9.]#" "timeout (seconds)"' \
+  '(-q -s -u -p -t)-z[read entry from editor buffer stack]' \
   '(-E)-e[input read is echoed and not assigned]' \
   '(-e)-E[input read is echoed]' \
   '(-q -z -p)-s[suppress terminal echoing]' \