diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2024-10-24 18:26:25 +0200 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2024-10-24 18:26:25 +0200 |
| commit | fec107e94b8c1924e4b0bd0c612687c64a7cc95f (patch) | |
| tree | 73f549332d6488006f6ba9f929d23c0eef8eb690 /src/bin | |
| parent | feat: hide frames except on search (diff) | |
| download | sl0pstatus-fec107e94b8c1924e4b0bd0c612687c64a7cc95f.tar.gz sl0pstatus-fec107e94b8c1924e4b0bd0c612687c64a7cc95f.tar.xz sl0pstatus-fec107e94b8c1924e4b0bd0c612687c64a7cc95f.zip | |
feat: add error message for empty config
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/zjstatus.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bin/zjstatus.rs b/src/bin/zjstatus.rs index 3ef57cc..4366db7 100644 --- a/src/bin/zjstatus.rs +++ b/src/bin/zjstatus.rs @@ -163,11 +163,12 @@ impl ZellijPlugin for State { self.state.cols = cols; tracing::debug!("{:?}", self.state.mode.session_name); - print!( - "{}", - self.module_config - .render_bar(self.state.clone(), self.widget_map.clone()) - ); + + let output = self + .module_config + .render_bar(self.state.clone(), self.widget_map.clone()); + + print!("{}", output); } } |
