From 2a0176888a18930ae48cf32f109b6c3665de5168 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sat, 1 Jun 2024 16:45:34 +0200 Subject: [PATCH] Fix display tab methods using static offset --- orders.lua | 2 +- requests.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orders.lua b/orders.lua index 6bdc333..4c58213 100644 --- a/orders.lua +++ b/orders.lua @@ -35,7 +35,7 @@ local function displayTab(self) local tw,th = self.window.getSize() for i, val in pairs(orders) do local line_num = (i-self.scrollPos)*2+1 - if line_num > 2 and line_num < th-1 then + if line_num > 0 and line_num < th-1 then self.window.setTextColor(colors.lightGray) self.window.setCursorPos(1,line_num) self.window.write(val.id) diff --git a/requests.lua b/requests.lua index 7c17a86..c31cff4 100644 --- a/requests.lua +++ b/requests.lua @@ -51,7 +51,7 @@ local function displayTab(self) display_list = {} for i, val in pairs(requests) do local line_num = i-self.scrollPos+1 - if line_num > 2 and line_num < th then + if line_num > 0 and line_num < th then self.window.setTextColor(colors.white) self.window.setCursorPos(1,line_num) self.window.write(val.req.name)