From 5a658252f8433a2c4d3ca2761d67f4ab15e5d8b8 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 16 Jul 2022 22:38:14 +0000 Subject: feat(input): enter clears error --- src/input.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input.rs b/src/input.rs index 9a4c3e6..e87d46c 100644 --- a/src/input.rs +++ b/src/input.rs @@ -121,6 +121,8 @@ fn handle_normal_input( }, KeyCode::Backspace => app.error = None, KeyCode::Enter => { + app.error = None; + if let Some(link) = &app.items.items[app.items.selected].1 { if !link.starts_with("gemini://") && link.contains("://") { } else { -- cgit v1.2.3