mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-22 19:56:08 +03: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.
|
// gracefully back to the default style.
|
||||||
log.err("failed to update style on cursor change err={}", .{err});
|
log.err("failed to update style on cursor change err={}", .{err});
|
||||||
self.cursor.style = .{};
|
self.cursor.style = .{};
|
||||||
|
self.cursor.style_id = 0;
|
||||||
|
self.cursor.style_ref = null;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user