From 0d30cc16568fdd2bb506e3c25c344013f0b21d28 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 13 May 2022 09:16:00 -0700 Subject: [PATCH] panic on unimplemented --- src/terminal/Terminal.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/terminal/Terminal.zig b/src/terminal/Terminal.zig index ba3fe6b9b..2f6395da8 100644 --- a/src/terminal/Terminal.zig +++ b/src/terminal/Terminal.zig @@ -439,7 +439,8 @@ pub fn linefeed(self: *Terminal, alloc: Allocator) void { /// Moves the cursor to the left margin. pub fn insertLines(self: *Terminal, alloc: Allocator, count: usize) !void { // TODO: scroll region bounds - // TODO: test + if (self.scrolling_region.bottom != self.rows - 1 or + self.scrolling_region.top != 0) @panic("unimplemented"); // Move the cursor to the left margin self.cursor.x = 0;