1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

fix completion after ~<num> (10812)

This commit is contained in:
Sven Wischnowsky 2000-04-18 15:09:40 +00:00
parent 9941ddd984
commit 44ee911749
2 changed files with 12 additions and 1 deletions

@ -1,3 +1,7 @@
2000-04-18 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
* 10812: Completion/Core/_path_files: fix completion after ~<num>
2000-04-18 Peter Stephenson <pws@cambridgesiliconradio.com>
* 10808: Completion/Core/compinstall: handle list-prompt.

@ -170,7 +170,14 @@ if [[ "$pre[1]" = \~ ]]; then
realpath="${userdirs[$linepath]%/}/"
elif (( $+nameddirs[$linepath] )); then
realpath="${nameddirs[$linepath]%/}/"
elif [[ "$linepath" = [-+][0-9]## ]]; then
elif [[ "$linepath" = ([-+]|)[0-9]## ]]; then
if [[ "$linepath" != [-+]* ]]; then
if [[ -o pushdminus ]]; then
linepath="-$linepath"
else
linepath="+$linepath"
fi
fi
if [[ "$linepath" = -* ]]; then
tmp=$(( $#dirstack $linepath ))
else