forgot this important if
This commit is contained in:
parent
8099e86526
commit
e766065e67
2 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue