aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorMichael Davis2024-03-26 05:49:39 +0000
committerGitHub2024-03-26 05:49:39 +0000
commit07e21a10f065eab5491e1e4a1a7aa12000b47d59 (patch)
tree3b940ac05265ef70f2e1ba54cea0bd0c2d414c9c /helix-term/src
parenta0d6566140fe43a3b2e74ece1f8e753241a60cdf (diff)
Revert "helix-term: allow to backspace out-of the command prompt (#9828)" (#10005)
This reverts commit 0dc67ff8852ce99d40ad4464062ebe212b0b03a1. 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.
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/ui/prompt.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs
index d46c1313..a6ee7f05 100644
--- a/helix-term/src/ui/prompt.rs
+++ b/helix-term/src/ui/prompt.rs
@@ -544,10 +544,6 @@ impl Component for Prompt {
(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);
}