diff options
author | Taylor C. Richberger <Taywee@gmx.com> | 2016-05-06 14:48:42 -0600 |
---|---|---|
committer | Taylor C. Richberger <Taywee@gmx.com> | 2016-05-06 14:48:42 -0600 |
commit | 0321aef7b37b6dee653f480c8cbbf349ccf5cf32 (patch) | |
tree | 6f04379fb8aabdc56336748082ce9545369a890e /args.hxx | |
parent | fix superfluous space character (diff) | |
download | args.hxx-0321aef7b37b6dee653f480c8cbbf349ccf5cf32.tar.xz |
better fix for wrap issue
Diffstat (limited to 'args.hxx')
-rw-r--r-- | args.hxx | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -99,13 +99,16 @@ namespace args currentwidth = width; } } - if (linesize && !item.empty()) + if (itemsize > 0) { - ++linesize; - line << " "; + if (linesize) + { + ++linesize; + line << " "; + } + line << item; + linesize += itemsize; } - line << item; - linesize += itemsize; } if (linesize > 0) { |