mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
23226: handle "nice -n<->"
This commit is contained in:
parent
3d6f87fccc
commit
fcbb417504
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue