Need to take into account the 2 chars of ', ' that also may be added!
This commit is contained in:
parent
c80c0a1fa7
commit
50c3038731
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue