commit fed94b19070f19d9c63e30b334d8736727b92b49
parent 96b15a6c2b61790c58a1686402b8c40d639bb683
Author: Isak Lindhé <isak.e.lindhe@gmail.com>
Date: Mon, 11 Feb 2019 00:05:34 +0100
ignore empty lines in interactive
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/txtv.py b/src/txtv.py
@@ -74,6 +74,8 @@ def interactive(start_page: Page):
while True:
try:
raw = input('> ').strip().lower()
+ if raw == '':
+ continue
cmd, m = match_command(raw, interactive=True)
if cmd:
cmd['func'](state=state, match=m)