fix(status-bar): display controls line of status-bar plugin if pane size=1 (#1875)
This commit is contained in:
parent
1704d11698
commit
86e765ea4d
1 changed files with 5 additions and 2 deletions
|
|
@ -204,7 +204,7 @@ impl ZellijPlugin for State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render(&mut self, _rows: usize, cols: usize) {
|
fn render(&mut self, rows: usize, cols: usize) {
|
||||||
let supports_arrow_fonts = !self.mode_info.capabilities.arrow_fonts;
|
let supports_arrow_fonts = !self.mode_info.capabilities.arrow_fonts;
|
||||||
let separator = if supports_arrow_fonts {
|
let separator = if supports_arrow_fonts {
|
||||||
ARROW_SEPARATOR
|
ARROW_SEPARATOR
|
||||||
|
|
@ -230,7 +230,10 @@ impl ZellijPlugin for State {
|
||||||
println!("{}\u{1b}[48;5;{}m\u{1b}[0K", first_line, color);
|
println!("{}\u{1b}[48;5;{}m\u{1b}[0K", first_line, color);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
println!("\u{1b}[m{}\u{1b}[0K", second_line);
|
|
||||||
|
if rows > 1 {
|
||||||
|
println!("\u{1b}[m{}\u{1b}[0K", second_line);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue