aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-01-12 15:59:26 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-01-12 15:59:26 +0000
commit50c303873177119f7756d628c0384661b41f0d1d (patch)
tree7f585ea21e2b105a607bc8b9a157c71fb9f6530d /src
parentTrim and polish things a little (diff)
downloadsl0ppij-50c303873177119f7756d628c0384661b41f0d1d.tar.gz
sl0ppij-50c303873177119f7756d628c0384661b41f0d1d.tar.xz
sl0ppij-50c303873177119f7756d628c0384661b41f0d1d.zip
Need to take into account the 2 chars of ', ' that also may be added!
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3774de98..590bb3a9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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 {