Skip to content

Commit

Permalink
Better backspace
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenXie committed Feb 11, 2022
1 parent d00d416 commit 73bc5aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion typertype/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .main import Typertype
__version__ = "1.1.2"
__version__ = "1.1.3"
4 changes: 2 additions & 2 deletions typertype/src/words_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def practice_set(self,stdscr):
return
# backspace:
elif cur_key == 8 or cur_key == curses.KEY_BACKSPACE:
if cur_set[i-1][1] == curses.color_pair(2) and self.CORRECTIONS == "Backspace":
if self.CORRECTIONS == "Backspace":
cur_set[i][1] = curses.color_pair(1)
cur_set[i-1][1] = curses.color_pair(2) | curses.A_BLINK
cur_set[i-1][1] = ( curses.color_pair(2) | curses.A_BLINK if cur_set[i-1][1] == curses.color_pair(2) else curses.color_pair(1) | curses.A_BLINK)
i -= 1
if i >= self.WIN_X//2:
l -= 1
Expand Down

0 comments on commit 73bc5aa

Please sign in to comment.