From 89d407dd6a2d3e437a6b292534c17d108ab70abf Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 14 Jul 2024 15:13:41 -0700 Subject: [PATCH] termio: excessive cursor reset --- src/termio/Termio.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/termio/Termio.zig b/src/termio/Termio.zig index a23679285..b73dd8291 100644 --- a/src/termio/Termio.zig +++ b/src/termio/Termio.zig @@ -491,7 +491,7 @@ fn processOutputLocked(self: *Termio, buf: []const u8) void { // use a timer under the covers if (std.time.Instant.now()) |now| cursor_reset: { if (self.last_cursor_reset) |last| { - if (now.since(last) <= (500 / std.time.ns_per_ms)) { + if (now.since(last) <= (500 * std.time.ns_per_ms)) { break :cursor_reset; } }