mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-22 03:36:14 +03:00
termio: excessive cursor reset
This commit is contained in:
@ -491,7 +491,7 @@ fn processOutputLocked(self: *Termio, buf: []const u8) void {
|
|||||||
// use a timer under the covers
|
// use a timer under the covers
|
||||||
if (std.time.Instant.now()) |now| cursor_reset: {
|
if (std.time.Instant.now()) |now| cursor_reset: {
|
||||||
if (self.last_cursor_reset) |last| {
|
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;
|
break :cursor_reset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user