diff options
Diffstat (limited to 'default-plugins/status-bar/src/main.rs')
-rw-r--r-- | default-plugins/status-bar/src/main.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/default-plugins/status-bar/src/main.rs b/default-plugins/status-bar/src/main.rs index e1a79d49a..bb56c279a 100644 --- a/default-plugins/status-bar/src/main.rs +++ b/default-plugins/status-bar/src/main.rs @@ -140,9 +140,15 @@ impl ZellijPlugin for State { } fn render(&mut self, _rows: usize, cols: usize) { + let separator = if !self.mode_info.capabilities.arrow_fonts { + ARROW_SEPARATOR + } else { + &"" + }; + let colored_elements = color_elements(self.mode_info.palette); - let superkey = superkey(colored_elements); - let ctrl_keys = ctrl_keys(&self.mode_info, cols - superkey.len); + let superkey = superkey(colored_elements, separator); + let ctrl_keys = ctrl_keys(&self.mode_info, cols - superkey.len, separator); let first_line = format!("{}{}", superkey, ctrl_keys); let second_line = keybinds(&self.mode_info, cols); |