mirror of
https://github.com/atuinsh/atuin.git
synced 2025-06-18 16:07:17 +02:00
Retain the query entered into the TUI (#76)
If no results are found, and the user presses enter, keep the query! Resolves #73
This commit is contained in:
parent
bb086808b1
commit
07c5461013
@ -160,7 +160,7 @@ async fn key_handler(
|
||||
return Some(
|
||||
app.results
|
||||
.get(i)
|
||||
.map_or("".to_string(), |h| h.command.clone()),
|
||||
.map_or(app.input.clone(), |h| h.command.clone()),
|
||||
);
|
||||
}
|
||||
Key::Char(c) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user