diff options
author | Oliver Kiddle <opk@zsh.org> | 2025-03-03 01:24:46 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2025-03-03 01:30:32 +0100 |
commit | 435cb1b748ce1f2f5c38edc1d64f4ee2424f9b3a (patch) | |
tree | 65f0bb4ddc554199fc76c610ab7cb7e843aedb5d /Src/builtin.c | |
parent | 71f35afa1cd48d6c25a517797e543cb2aa23a47b (diff) | |
download | zsh-435cb1b748ce1f2f5c38edc1d64f4ee2424f9b3a.tar.gz zsh-435cb1b748ce1f2f5c38edc1d64f4ee2424f9b3a.zip |
53399: don't load ZLE early to set keymap
When zsh is run with -o vi / -o emacs, instead of loading ZLE to force
the change, only record the option state. Then when ZLE starts, the vi
option determines the default keymap.
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 6bdaddff0..5563bdba9 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -6333,7 +6333,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, NULL)) { + if (parseopts(nam, &argv, new_opts, &cmd, optlist, 0)) { ret = 1; goto restore; } |