Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] When sched +N ... is called from zle -F handler, it doesn't run
- X-seq: zsh-workers 43225
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [BUG] When sched +N ... is called from zle -F handler, it doesn't run
- Date: Mon, 30 Jul 2018 15:16:14 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180730141617euoutp020c501e0e8494182dad5ae4bdfcb01d0c~GKyjvbU1S3081430814euoutp02r
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1532960178; bh=brLyHz9zCsefbhRljNL9gwU4idIWLfQPGboqlWAJf+U=; h=Date:From:To:Subject:In-Reply-To:References:From; b=kh5cs32SYO3t3g+d2J94/E8p3NeKVrdfd1gx75zMH8gNMSLTbCYbrIHf3kGv7qVLp bs9ulrQho15gU7HSbjoqvPebjGaXk2hUKOEuJ8ox7dPdNVlnWiOmAoVNXDmh9oXqgz voS0x1HgZ2oHqbVkuRb64ylJUo+nIry18T+N2HLc=
- In-reply-to: <CAKc7PVC8C=MOdHnwmEa4zich8TyO-VwDGZRvD0enw2W8h9uppA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180728110652epcas5p3b6e47f2e0e59c60aa46a2a8cb42a5c3d@epcas5p3.samsung.com> <CAKc7PVC8C=MOdHnwmEa4zich8TyO-VwDGZRvD0enw2W8h9uppA@mail.gmail.com>
On Sat, 28 Jul 2018 13:05:58 +0200
Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
> I've had to move "sched +1 a-function" call away from inside of a zle
> -F handler (into a precmd handler) because that sched event wasn't
> running after the 1 second, nor after any more time. A key press (of
> e.g. space) was a thing that was restoring correct sched functioning.
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 99e44a7..7ec8afe 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -804,6 +804,8 @@ raw_getbyte(long do_keytmout, char *cptr)
}
# endif
}
+ /* If looping, need to recalculate timeout */
+ calc_timeout(&tmout, do_keytmout);
}
# ifdef HAVE_POLL
zfree(fds, sizeof(struct pollfd) * nfds);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author