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
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue