summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-05-01 14:37:54 +1000
committerMaxime Coste <mawww@kakoune.org>2021-05-01 14:37:54 +1000
commit2288be325725c6b4126c32f2e0eeec76df927744 (patch)
treeb898f864482a090e0dfe5a88bc86cf180a49011f /src/input_handler.cc
parent661fd266db2ea5e9233612e5a1f9eafc12665d8a (diff)
parente57fe4fb900491688c9f84c18ac5d893a607119b (diff)
Merge remote-tracking branch 'markus-oberhumer/ux-improve-prompt'
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index e2c1bb17..fde468d5 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -807,7 +807,8 @@ public:
m_callback(line, PromptEvent::Validate, context());
return;
}
- else if (key == Key::Escape or key == ctrl('c'))
+ else if (key == Key::Escape or key == ctrl('c') or
+ ((key == Key::Backspace or key == ctrl('h')) and line.empty()))
{
history_push(line);
context().print_status(DisplayLine{});