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)