mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-14 05:00:47 +00:00
terminal: properly clear style in error scenario
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user