23226: handle "nice -n<->"

This commit is contained in:
Peter Stephenson 2007-03-22 10:45:19 +00:00
parent 3d6f87fccc
commit fcbb417504
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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