Provide search functionality through the TUI #134

Merged
wojtek merged 35 commits from 24---provide-search-functionality-through-the-tui into main 2024-02-18 22:12:42 +01:00
Showing only changes of commit 973db2a753 - Show all commits

View File

@ -353,8 +353,8 @@ struct Minibuffer<'a> {
impl Minibuffer<'_> {
fn paragraphs(state: &AppPublicState) -> Self {
let columns = 3;
let mb = match state {
let columns = 2;
match state {
AppState::Browse(_) => Minibuffer {
paragraphs: vec![
Paragraph::new("m: show info overlay"),
@ -384,11 +384,7 @@ impl Minibuffer<'_> {
paragraphs: vec![Paragraph::new("Press ctrl+c to terminate the program...")],
columns: 1,
},
};
// Callers will assume this.
assert!(mb.columns >= mb.paragraphs.len() as u16);
mb
}
}
}