1
0
mirror of https://github.com/atuinsh/atuin.git synced 2025-07-27 02:44:53 +02:00

Retain the query entered into the TUI ()

If no results are found, and the user presses enter, keep the query!

Resolves 
This commit is contained in:
Ellie Huxtable
2021-05-08 22:10:40 +01:00
committed by GitHub
parent bb086808b1
commit 07c5461013

@ -160,7 +160,7 @@ async fn key_handler(
return Some( return Some(
app.results app.results
.get(i) .get(i)
.map_or("".to_string(), |h| h.command.clone()), .map_or(app.input.clone(), |h| h.command.clone()),
); );
} }
Key::Char(c) => { Key::Char(c) => {