diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-18 12:26:35 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-18 12:26:35 +0000 |
commit | 2c4e618e968ece47dc19559c480b760b480f0693 (patch) | |
tree | 78393ab209fa17c9ab7a4863a04753888334ec32 /Src/Zle/computil.c | |
parent | 072ee04d3d8f41a0b8bf0a1b5c5a7bde419ea879 (diff) | |
download | zsh-2c4e618e968ece47dc19559c480b760b480f0693.tar.gz zsh-2c4e618e968ece47dc19559c480b760b480f0693.tar.xz zsh-2c4e618e968ece47dc19559c480b760b480f0693.zip |
zsh-workers/9340
Diffstat (limited to 'Src/Zle/computil.c')
-rw-r--r-- | Src/Zle/computil.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |