diff options
author | Canop <cano.petrole@gmail.com> | 2020-05-21 14:26:15 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-05-21 14:26:15 +0200 |
commit | 055c3236f6f5bd22c0a46bc234ae0e9988180955 (patch) | |
tree | ba37b31e8707b904d591bad15413037d69b219db | |
parent | 4eb2b231e5865d9925c78a10734094496588138b (diff) |
fix wrong status ellipsis in multi-panels
-rw-r--r-- | src/display/status_line.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/status_line.rs b/src/display/status_line.rs index 16ac893..00f13aa 100644 --- a/src/display/status_line.rs +++ b/src/display/status_line.rs @@ -33,7 +33,7 @@ pub fn write( &panel_skin.status_skin.normal }; style.write_inline_on(w, " ")?; - let remaining_width = (screen.width - x - 1) as usize; + let remaining_width = (area.width - (x - area.left) - 1) as usize; style.write_composite_fill( w, Composite::from_inline(&status.message), |