diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2020-04-09 21:46:20 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2020-04-09 21:46:20 +0100 |
commit | 66ee4918a1540ae3baf8077c216a2b36ccba76f4 (patch) | |
tree | d710b681d99462aa43303034c6f867fcbcb1e5cd /Src/builtin.c | |
parent | c70d73436331e24b379c39ab191c0f9e74cc47a2 (diff) | |
download | zsh-66ee4918a1540ae3baf8077c216a2b36ccba76f4.tar.gz zsh-66ee4918a1540ae3baf8077c216a2b36ccba76f4.tar.xz zsh-66ee4918a1540ae3baf8077c216a2b36ccba76f4.zip |
45660: Fix crash setting vi or emacs mode on command line.
Delay setting the option until the module system is set up.
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 407cad159..3dab3f9b4 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -6119,7 +6119,7 @@ bin_emulate(char *nam, char **argv, Options ops, UNUSED(int func)) savehackchar = keyboardhackchar; emulate(shname, opt_R, &new_emulation, new_opts); optlist = newlinklist(); - if (parseopts(nam, &argv, new_opts, &cmd, optlist, 0)) { + if (parseopts(nam, &argv, new_opts, &cmd, optlist, 0, NULL)) { ret = 1; goto restore; } |