Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _zarun:1: can't change option: vi
On Mon, Feb 17, 2025 at 11:37 AM Lawrence Velázquez <larryv@xxxxxxx> wrote:
>
> On Mon, Feb 17, 2025, at 10:29 AM, Eric Nielsen wrote:
> > } else if ((optno == EMACSMODE || optno == VIMODE) && value) {
> > + if (new_opts[optno] == value)
> > + return 0;
new_opts is an output rather than an input. It does point to the
global opts array most of the time, but testing it instead of using
the global is logically incorrect.
> https://www.zsh.org/mla/workers/2025/msg00070.html
>
> --
> vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author