HPA does nothing when status display is active

This commit is contained in:
Mitchell Hashimoto
2022-08-05 19:56:40 -07:00
parent ce6f022a7e
commit c99a79055c

View File

@ -525,6 +525,8 @@ pub fn setCursorColAbsolute(self: *Terminal, col_req: usize) void {
assert(self.modes.origin == 0); // TODO
if (self.status_display != .main) return; // TODO
const col = if (col_req == 0) 1 else col_req;
self.screen.cursor.x = @minimum(self.cols, col) - 1;
}