1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 12:11:26 +01:00

zsh-users/7100: fix completion of =file when noequals is set

This commit is contained in:
Peter Stephenson 2004-03-02 12:52:02 +00:00
parent cb3d3b0c9a
commit 084cbf5ee0
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
2004-03-02 Peter Stephenson <pws@csr.com>
* zsh-users/7100: Completion/Base/Core/_main_complete:
didn't test for [[ -o equals ]] before scrobbling the first
= of an argument.
* spotted by Bart 19514: typo in Src/Modules/terminfo.c.
2004-03-01 Peter Stephenson <pws@csr.com>

View file

@ -57,7 +57,7 @@ fi
# Special completion contexts after `~' and `='.
if [[ -z "$compstate[quote]" ]]; then
if compset -P 1 '='; then
if [[ -o equals ]] && compset -P 1 '='; then
compstate[context]=equal
elif [[ "$PREFIX" != */* && "$PREFIX[1]" = '~' ]]; then
compset -p 1