From 952271be4a03492593a1dca81629668891a5a0ee Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Mon, 4 May 2020 23:27:10 +0200 Subject: [PATCH] Fix the default option --- markdownrunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdownrunner.py b/markdownrunner.py index 72adde5..6607c6c 100755 --- a/markdownrunner.py +++ b/markdownrunner.py @@ -122,7 +122,7 @@ def user_action(hunk: Sequence[Command], context=None) -> Sequence[Command]: # TODO: Print prompt in color (green?) answer = input("What to do: edit(e), run(y, default), skip(n)?") - if answer is None: + if answer is None or answer == '': # Default is run, for convenience answer = 'Y' if answer.startswith(('e', 'E')):