about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-26 08:27:03 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-26 08:27:03 +0000
commitea08ba3cea5fe6d979d984a556b902003d0afe04 (patch)
tree99cce954b6934cbf4d369dc5aa8d3eca390f87cf
parentd3eca43623881efdd3034cf8089c394c81214a65 (diff)
downloadzsh-ea08ba3cea5fe6d979d984a556b902003d0afe04.tar.gz
zsh-ea08ba3cea5fe6d979d984a556b902003d0afe04.tar.xz
zsh-ea08ba3cea5fe6d979d984a556b902003d0afe04.zip
_pids shouldn't start menu completion if the current word starts with a hyphen; typo fix in compsys.yo (13763)
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Builtins/_pids2
-rw-r--r--Doc/Zsh/compsys.yo2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2675bd4c6..554b8469c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-26  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 13763: Completion/Builtins/_pids, Doc/Zsh/compsys.yo: _pids
+	* shouldn't start menu completion if the current word starts
+	* with a hyphen; typo fix in compsys.yo
+
 2001-03-25  Bart Schaefer  <schaefer@zsh.org>
 
 	* 13757: StartupFiles/zlogin, StartupFiles/zshenv,
diff --git a/Completion/Builtins/_pids b/Completion/Builtins/_pids
index 392689848..ad15031b6 100644
--- a/Completion/Builtins/_pids
+++ b/Completion/Builtins/_pids
@@ -11,7 +11,7 @@ if [[ "$1" = -m ]]; then
   all=()
   match="*[[:blank:]]${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*[/[:blank:]]${2}*"
   shift 2
-elif [[ "$PREFIX$SUFFIX" = (%*|[0-9]#) ]]; then
+elif [[ "$PREFIX$SUFFIX" = ([%-]*|[0-9]#) ]]; then
   all=()
   match="*[[:blank:]]${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*"
 else
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 81700762a..de1c42422 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -2300,7 +2300,7 @@ to accept may be given with the tt(-a) option.  Its argument should be
 the same as the value of the tt(max-errors) style, all in one string.
 
 Note that this completer (and the tt(_correct) completer mentioned
-below) can be quite expansive to call, especially when a large number
+below) can be quite expensive to call, especially when a large number
 of errors is allowed.  One way to avoid this is to set up the
 tt(completer) style using the tt(-e) option to zstyle so that some
 completers are only used when completion is attempted a second time on