From ea1ef0641d92952259bb924eb6d032bd59481e51 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 26 Oct 2023 22:52:12 -0700 Subject: [PATCH] terminal: assertion should check x is on left margin --- src/terminal/Terminal.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/Terminal.zig b/src/terminal/Terminal.zig index 467c67fd6..9f45aebdc 100644 --- a/src/terminal/Terminal.zig +++ b/src/terminal/Terminal.zig @@ -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; }