summary refs log tree commit diff
diff options
context:
space:
mode:
-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