Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display controls line of status-bar plugin if pane size=1 #1875

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions default-plugins/status-bar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 separator = if supports_arrow_fonts {
ARROW_SEPARATOR
Expand All @@ -230,7 +230,10 @@ impl ZellijPlugin for State {
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);
}
}
}

Expand Down