No need to require column number
This commit is contained in:
parent
c4dc0d173b
commit
973db2a753
@ -353,8 +353,8 @@ struct Minibuffer<'a> {
|
|||||||
|
|
||||||
impl Minibuffer<'_> {
|
impl Minibuffer<'_> {
|
||||||
fn paragraphs(state: &AppPublicState) -> Self {
|
fn paragraphs(state: &AppPublicState) -> Self {
|
||||||
let columns = 3;
|
let columns = 2;
|
||||||
let mb = match state {
|
match state {
|
||||||
AppState::Browse(_) => Minibuffer {
|
AppState::Browse(_) => Minibuffer {
|
||||||
paragraphs: vec![
|
paragraphs: vec![
|
||||||
Paragraph::new("m: show info overlay"),
|
Paragraph::new("m: show info overlay"),
|
||||||
@ -384,11 +384,7 @@ impl Minibuffer<'_> {
|
|||||||
paragraphs: vec![Paragraph::new("Press ctrl+c to terminate the program...")],
|
paragraphs: vec![Paragraph::new("Press ctrl+c to terminate the program...")],
|
||||||
columns: 1,
|
columns: 1,
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
|
|
||||||
// Callers will assume this.
|
|
||||||
assert!(mb.columns >= mb.paragraphs.len() as u16);
|
|
||||||
mb
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user