aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs
index 463ac368..593da3ae 100644
--- a/helix-term/src/ui/mod.rs
+++ b/helix-term/src/ui/mod.rs
@@ -45,6 +45,11 @@ pub fn regex_prompt(
//
}
PromptEvent::Update => {
+ // skip empty input, TODO: trigger default
+ if input.is_empty() {
+ return;
+ }
+
match Regex::new(input) {
Ok(regex) => {
let view = &mut editor.view_mut();