diff options
Diffstat (limited to 'src/widget.rs')
-rw-r--r-- | src/widget.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widget.rs b/src/widget.rs index 1610596..28e58e6 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -373,9 +373,12 @@ pub trait Widget { } fn show_status(&self, status: &str) -> HResult<()> { + let xsize = self.get_core()?.coordinates.xsize_u(); + let sized_status = term::sized_string_u(status, xsize); + HError::log(status.to_string()).log(); { let mut status_content = self.get_core()?.status_bar_content.lock()?; - *status_content = Some(status.to_string()); + *status_content = Some(sized_status); } self.draw_status()?; Ok(()) |