summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2000-08-10 21:12:03 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2000-08-10 21:12:03 +0000
commit5b04efd73cba5e3ebf0e919e68ba7f2baae4734e (patch)
treeeb971bc9ca6c8ecb553e542abf9d0196dcbf055d
parent432c0af097470b5276ebd1cce325a662697a3a24 (diff)
downloadzsh-5b04efd73cba5e3ebf0e919e68ba7f2baae4734e.tar.gz
zsh-5b04efd73cba5e3ebf0e919e68ba7f2baae4734e.tar.xz
zsh-5b04efd73cba5e3ebf0e919e68ba7f2baae4734e.zip
add -g option to _parameters to restrict type of parameters completed (12583)
-rw-r--r--ChangeLog8
-rw-r--r--Completion/Base/_math2
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 920ebd789..2cd4edfa5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-08-10  Oliver Kiddle  <opk@zsh.org>
+
+	* 12583: Completion/Base/_math, Completion/Builtins/_arrays,
+	Completion/Builtins/_vars, Completion/Builtins/_zpty,
+	Completion/Commands/_bash_completions, Completion/Core/_parameters,
+	Doc/Zsh/compsys.yo: add -g option to _parameters to restrict the
+	type of parameters completed
+
 2000-08-10  Peter Stephenson  <pws@csr.com>
 
 	* 12582: Misc/Functions/is-at-least: make it accept name
diff --git a/Completion/Base/_math b/Completion/Base/_math
index 9af9e0d7e..61c991e3c 100644
--- a/Completion/Base/_math
+++ b/Completion/Base/_math
@@ -9,4 +9,4 @@ if [[ "$SUFFIX" = *[^a-zA-Z0-9_]* ]]; then
   SUFFIX="${SUFFIX%%[^a-zA-Z0-9_]*}"
 fi
 
-_parameters
+_parameters -g '(integer|float)*'