aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorwustho <benawiadha@gmail.com>2020-04-18 12:29:49 +0700
committerwustho <benawiadha@gmail.com>2020-04-18 12:29:49 +0700
commit206e4829c434cb212dea661de8ecbb6d50244191 (patch)
treee3ae95769d9920d3160f744dcf3ef664d2795f1c /epy.py
parentadb00d02d4e7a3625314714bdc450b6a6f481a88 (diff)
downloadepy-206e4829c434cb212dea661de8ecbb6d50244191.tar.gz
Fixed resizing terminal error when defining word.
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/epy.py b/epy.py
index d6f5385..6b57aef 100755
--- a/epy.py
+++ b/epy.py
@@ -1321,7 +1321,10 @@ def reader(ebook, index, width, y, pctg, sect):
return bmtojump[1]-index, width, bmtojump[2], bmtojump[3], ""
elif k in K["DefineWord"] and DICT is not None:
word = input_prompt(" Define:")
- if word is not None:
+ if word == curses.KEY_RESIZE:
+ k = word
+ continue
+ elif word is not None:
defin = define_word(word)
if defin in WINKEYS:
k = defin