mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-23 19:10:09 +03:00
Need to take into account the 2 chars of ', ' that also may be added!
This commit is contained in:
parent
c80c0a1fa7
commit
50c3038731
@ -19,7 +19,7 @@ impl MosaicTile for State {
|
||||
self.lines = vec![String::new()];
|
||||
for item in get_help() {
|
||||
let width = self.lines.last().unwrap().len();
|
||||
if width + item.len() > cols - more_msg.len() {
|
||||
if width + item.len() + 2 > cols - more_msg.len() {
|
||||
self.lines.last_mut().unwrap().push_str(more_msg);
|
||||
self.lines.push(item);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user