Need to take into account the 2 chars of ', ' that also may be added!

This commit is contained in:
Brooks J Rady 2021-01-12 15:59:26 +00:00
parent c80c0a1fa7
commit 50c3038731

View File

@ -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 {