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:
parent
9c33cf4434
commit
2983ed3fb3
5 changed files with 50 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue