about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-03-22 10:45:19 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-03-22 10:45:19 +0000
commitfcbb417504f06a61177f27259a165ef8598ca536 (patch)
tree0a432e208e08b95f31c147e488bb44dabebcd8b8
parent3d6f87fccc2cbc394befc666fe4783c39329b19a (diff)
downloadzsh-fcbb417504f06a61177f27259a165ef8598ca536.tar.gz
zsh-fcbb417504f06a61177f27259a165ef8598ca536.tar.xz
zsh-fcbb417504f06a61177f27259a165ef8598ca536.zip
23226: handle "nice -n<->"
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_nice2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b8e0292d8..2cf0f71d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-22  Peter Stephenson  <pws@csr.com>
+
+	* 23226: Completion/Unix/Command/_nice: "nice -n<->" wasn't
+	handled.
+
 2007-03-19  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 23224: Src/Zle/zle_refresh.c: fix output of prompt in
diff --git a/Completion/Unix/Command/_nice b/Completion/Unix/Command/_nice
index f2f688368..29070697f 100644
--- a/Completion/Unix/Command/_nice
+++ b/Completion/Unix/Command/_nice
@@ -3,7 +3,7 @@
 shift words
 (( CURRENT-- ))
 
-if [[ $CURRENT -gt 1 && $words[1] = [-+](-|)<-> ]]; then
+if [[ $CURRENT -gt 1 && $words[1] = ([-+](-|)|-n)<-> ]]; then
     shift words
     (( CURRENT -- ))
 elif [[ $CURRENT -gt 2 && $words[1] = -n ]]; then