diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-12 15:59:26 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-12 15:59:26 +0000 |
| commit | 50c303873177119f7756d628c0384661b41f0d1d (patch) | |
| tree | 7f585ea21e2b105a607bc8b9a157c71fb9f6530d /src | |
| parent | Trim and polish things a little (diff) | |
| download | sl0ppij-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.rs | 2 |
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 { |
