From 084cbf5ee0f423bba00c6f0bc9ba622286d71f33 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 2 Mar 2004 12:52:02 +0000 Subject: [PATCH] zsh-users/7100: fix completion of =file when noequals is set --- ChangeLog | 4 ++++ Completion/Base/Core/_main_complete | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2ea8044f4..703292522 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-03-02 Peter Stephenson + * 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 diff --git a/Completion/Base/Core/_main_complete b/Completion/Base/Core/_main_complete index b231b994d..5712a9284 100644 --- a/Completion/Base/Core/_main_complete +++ b/Completion/Base/Core/_main_complete @@ -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