From 1331c770a06bdfc30eb8d4632c4f5777efcd3725 Mon Sep 17 00:00:00 2001 From: Doman Date: Sun, 6 Mar 2022 18:51:52 +0100 Subject: [PATCH] usage of should repaint in old functions --- fasttyper/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fasttyper/components.py b/fasttyper/components.py index 90d074e..070c5fb 100644 --- a/fasttyper/components.py +++ b/fasttyper/components.py @@ -149,7 +149,7 @@ class BufferDependentComponent(BorderedBox): word = word[:width] if self.line_len(line_nr) + len(word) + 1 > self.width: - self.paint_line(line_nr) + self.should_repaint[line_nr] = True line_nr += 1 if line_nr >= self.height: