From 92134a81297303b7531e306c9ce0c93ea3d0cdf1 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sat, 1 Jun 2024 16:53:51 +0200 Subject: [PATCH] Fix tab not clearing window when redrawing --- orders.lua | 1 + requests.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/orders.lua b/orders.lua index 4c58213..668baa9 100644 --- a/orders.lua +++ b/orders.lua @@ -32,6 +32,7 @@ end local function displayTab(self) + self.window.clear() local tw,th = self.window.getSize() for i, val in pairs(orders) do local line_num = (i-self.scrollPos)*2+1 diff --git a/requests.lua b/requests.lua index c31cff4..3b33a20 100644 --- a/requests.lua +++ b/requests.lua @@ -47,6 +47,7 @@ local function fetch(wait_for) end local function displayTab(self) + self.window.clear() local tw,th = self.window.getSize() display_list = {} for i, val in pairs(requests) do