From 3513b1cdc2812f80713b0b9026a80d654e8c1ec9 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 21 Mar 2024 09:37:44 -0700 Subject: [PATCH] terminal: properly clear style in error scenario --- src/terminal/Screen.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/terminal/Screen.zig b/src/terminal/Screen.zig index 958ba98b9..659219aa9 100644 --- a/src/terminal/Screen.zig +++ b/src/terminal/Screen.zig @@ -634,6 +634,8 @@ fn cursorChangePin(self: *Screen, new: Pin) void { // gracefully back to the default style. log.err("failed to update style on cursor change err={}", .{err}); self.cursor.style = .{}; + self.cursor.style_id = 0; + self.cursor.style_ref = null; }; }