From 2c4e618e968ece47dc19559c480b760b480f0693 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 18 Jan 2000 12:26:35 +0000 Subject: zsh-workers/9340 --- Src/Zle/computil.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Src/Zle/computil.c') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 021dff6bf..daccb6a22 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1109,7 +1109,10 @@ ca_parse_line(Cadef d) /* See if it's an option. */ - if (state.opt == 2 && (state.curopt = ca_get_opt(d, line, 0, &pe))) { + if (state.opt == 2 && (state.curopt = ca_get_opt(d, line, 0, &pe)) && + (state.curopt->type != CAO_EQUAL || + compwords[cur] || pe[-1] == '=')) { + ddef = state.def = state.curopt->args; doff = pe - line; state.optbeg = state.argbeg = state.inopt = cur; -- cgit 1.4.1