From 1754b0df75701cadb264b2c3ae829893f1a04327 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 25 Jun 2022 10:14:11 +0300 Subject: [PATCH] Fix false positive due to 'max-redisplay-ticks' feature * src/xdisp.c (redisplay_internal): Reset the tick count at end of redisplay cycle. (Bug#45898) --- src/xdisp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index c37a58ab4e1..886c3f4ecbf 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -16923,6 +16923,10 @@ redisplay_internal (void) if (interrupt_input && interrupts_deferred) request_sigio (); + /* We're done with this redisplay cycle, so reset the tick count in + preparation for the next redisplay cycle. */ + update_redisplay_ticks (0, NULL); + unbind_to (count, Qnil); RESUME_POLLING; } -- 2.39.5