1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 16:40:29 +01:00

22594: Attempt to fix some off-by-one errors for completion lists

that exactly fit the display width
This commit is contained in:
Peter Stephenson 2006-08-09 22:08:38 +00:00
parent 9c33cf4434
commit 2983ed3fb3
5 changed files with 50 additions and 8 deletions

View file

@ -2,6 +2,9 @@
# pushd +/-n just lifts the selected element to the top of the stack
# instead of just cycling the stack.
local puid
[[ -o pushdignoredups ]] && puid=1
emulate -R zsh
setopt localoptions
@ -9,5 +12,6 @@ if [[ ARGC -eq 1 && "$1" == [+-]<-> ]] then
setopt pushdignoredups
builtin pushd ~$1
else
[[ -n $puid ]] && setopt pushdignoredups
builtin pushd "$@"
fi