forgot this important if

This commit is contained in:
Doman 2021-07-11 20:18:32 +02:00
parent 8099e86526
commit e766065e67
2 changed files with 4 additions and 3 deletions

View file

@ -133,8 +133,9 @@ class TextBox(TextComponent):
if next_word:
last_line = lines[-1]
if len(last_line) != 0:
lines[-1] = lines[-1][: -len(next_word)]
if len(last_line) == 0:
lines = lines[:-1]
lines[-1] = lines[-1][: -len(next_word)]
lines = lines[: self.maxy - self.usedy]
return "\n".join(lines)

View file

@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setup(
name="fasttyper-pkg-ickyicky",
version="0.0.2",
version="0.0.3",
author="Piotr Domanski",
author_email="pi.domanski@gmail.com",
description="Minimalistic typing exercise",