From 803a4c43b9f7bed515457988242ecfb337eb7c3d Mon Sep 17 00:00:00 2001 From: Keefer Rourke Date: Sat, 31 Oct 2020 11:20:06 -0400 Subject: [PATCH] Fix UnboundLocalError in Log class --- dashing/dashing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashing/dashing.py b/dashing/dashing.py index a74a333..1991ae6 100644 --- a/dashing/dashing.py +++ b/dashing/dashing.py @@ -266,9 +266,9 @@ def _display(self, tbox, parent): line = self.logs[start + i] print(tbox.t.move(tbox.x + i, tbox.y) + line + " " * (tbox.w - len(line))) - if i < tbox.h: - for i2 in range(i + 1, tbox.h): - print(tbox.t.move(tbox.x + i2, tbox.y) + " " * tbox.w) + if i < tbox.h: + for i2 in range(i + 1, tbox.h): + print(tbox.t.move(tbox.x + i2, tbox.y) + " " * tbox.w) def append(self, msg): """Append a new log message at the bottom"""