From fed6dc9e14566408bf527ea123092ce5511e05e9 Mon Sep 17 00:00:00 2001 From: Benawi Adha Date: Sun, 11 Dec 2022 06:38:34 +0700 Subject: Fix issue #73 --- src/epy_reader/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/epy_reader/reader.py b/src/epy_reader/reader.py index a903b62..cd56ac1 100644 --- a/src/epy_reader/reader.py +++ b/src/epy_reader/reader.py @@ -402,7 +402,7 @@ class Reader: stat.refresh() curses.echo(False) safe_curs_set(0) - return init_text + return init_text if init_text else NoUpdate() elif ipt in (Key(8), Key(127), Key(curses.KEY_BACKSPACE)): init_text = init_text[:-1] elif ipt == Key(curses.KEY_RESIZE): -- cgit