mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-17 13:47:34 +03:00
This reverts commit 0dc67ff885
.
See the post-merge discussion in #9828. The old behavior was less
surprising and we have other ways to abort from a prompt, so let's
revert the behavior change.
This commit is contained in:
parent
a0d6566140
commit
07e21a10f0
@ -544,10 +544,6 @@ fn handle_event(&mut self, event: &Event, cx: &mut Context) -> EventResult {
|
||||
(self.callback_fn)(cx, &self.line, PromptEvent::Update);
|
||||
}
|
||||
ctrl!('h') | key!(Backspace) | shift!(Backspace) => {
|
||||
if self.line.is_empty() {
|
||||
(self.callback_fn)(cx, &self.line, PromptEvent::Abort);
|
||||
return close_fn;
|
||||
}
|
||||
self.delete_char_backwards(cx.editor);
|
||||
(self.callback_fn)(cx, &self.line, PromptEvent::Update);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user