Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG]: zle-line-pre-redraw breaks vi-repeat-change
- X-seq: zsh-workers 47433
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [BUG]: zle-line-pre-redraw breaks vi-repeat-change
- Date: Wed, 7 Oct 2020 14:25:43 +0100 (BST)
- Archived-at: <https://zsh.org/workers/47433>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-10/2080752838.394973.1602077143639%40mail2.virginmedia.com>
- Authentication-results: zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1602077143; bh=B1chbwjv4xDvTKfpqcjXSDuoQuGEDhEhVOenFATw2Ow=; h=Date:From:To:In-Reply-To:References:Subject; b=08HjHTiZx1HVvxgZ7wHs6uDkFEE8gwmqhVelkdKNdCFntq/rMFvZv9CPwqXp3G3Bs cQGoX63D5bBwWEWaswnd3WNi/sny8FliZYN8vGRmnfrdpa++Q45JKsASWu+sn7xQoc F7NcimFONvwHNpHMwfDSwyRPV5kgSfLa8CkKAjx9svuh6oxr83NMlIpPi+a6TUQrKX uCezmHLFSsas8nWmPbF6cztJ5rcL9uzPdEKKCJi0Ov/aBAnuL7BuNokC0OJz3mek1U eCKXrlEtTlauzsZunF4todWRDka0VvpJMstltYXyCT00zYdyhTY/WEGseuol07T8qN c2dXbxSQTdycg==
- Importance: Medium
- In-reply-to: <CAN=4vMrW8jtzoAATn888q=rXpukYTt6V6HEdGGo-tVn=Vaoz-A@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <CAN=4vMrW8jtzoAATn888q=rXpukYTt6V6HEdGGo-tVn=Vaoz-A@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
> On 07 October 2020 at 13:49 Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> wrote:
>
>
> If zle-line-pre-redraw is defined, vi-repeat-change behaves as if the
> numeric argument was always 1.
I wonder if we need to change zlecallhook().
pws
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 8c0534708..1622d8a6b 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1067,6 +1067,7 @@ redrawhook(void)
int old_incompfunc = incompfunc;
char *args[2];
Thingy lbindk_save = lbindk, bindk_save = bindk;
+ struct modifier zmod_save = zmod;
refthingy(lbindk_save);
refthingy(bindk_save);
@@ -1094,6 +1095,7 @@ redrawhook(void)
* restore lastcmd manually so that we don't mess up the global state
*/
lastcmd = lastcmd_prev;
+ zmod = zmod_save;
}
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author