Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _zarun:1: can't change option: vi
- X-seq: zsh-workers 53370
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: "Eric Nielsen" <ericbn@xxxxxxx>
- Cc: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: _zarun:1: can't change option: vi
- Date: Mon, 17 Feb 2025 14:37:04 -0500
- Archived-at: <https://zsh.org/workers/53370>
- Feedback-id: iaa214773:Fastmail
- In-reply-to: <8dcc05e5ffacf2ddd6cdd51238affb7d440dda69@hey.com>
- List-id: <zsh-workers.zsh.org>
- References: <8dcc05e5ffacf2ddd6cdd51238affb7d440dda69@hey.com>
On Mon, Feb 17, 2025, at 10:29 AM, Eric Nielsen wrote:
> I see. So maybe it should only fail if the value is actually changing?
>
> diff --git a/Src/options.c b/Src/options.c
> index 8b37ab5e8..c5186ef2b 100644
> --- a/Src/options.c
> +++ b/Src/options.c
> @@ -887,6 +887,8 @@ dosetopt(int optno, int value, int force, char *new_opts)
> acquire_pgrp();
> }
> } else if ((optno == EMACSMODE || optno == VIMODE) && value) {
> + if (new_opts[optno] == value)
> + return 0;
> if (sticky && sticky->emulation)
> return -1;
> zleentry(ZLE_CMD_SET_KEYMAP, optno);
https://www.zsh.org/mla/workers/2025/msg00070.html
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author