Commit 3adbc019 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Don't exit prompt mode on Ctrl-C

This shows more consistent behavior with other prompt applications.

This commit fixes issue #106.
parent cf57b932
......@@ -95,8 +95,10 @@ class PromptApplication(CLIApplicationBase):
completer=self.completer,
complete_while_typing=False)
user_input = shlex.split(user_input)
except (EOFError, KeyboardInterrupt):
except EOFError:
sys.exit(0)
except KeyboardInterrupt:
continue
mtime_after = _todotxt_mtime()
(subcommand, args) = get_subcommand(user_input)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment