terminal: assertion should check x is on left margin

This commit is contained in:
Mitchell Hashimoto
2023-10-26 22:52:12 -07:00
parent 67f23342a1
commit ea1ef0641d

View File

@ -1478,7 +1478,7 @@ pub fn cursorLeft(self: *Terminal, count_req: usize) void {
// appropriately sized value of "count" this is the behavior that xterm
// would have. This is unit tested.
if (self.screen.cursor.y == 0) {
assert(self.screen.cursor.x == 0);
assert(self.screen.cursor.x == left_margin);
break;
}