Retool word wrapping
authorJeremy Stanley <fungi@yuggoth.org>
Fri, 25 May 2018 06:10:52 +0000 (06:10 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Fri, 25 May 2018 06:25:57 +0000 (06:25 +0000)
Better handle CR+LF injection when encountering words longer than
the terminal width. If a word is so wide it cannot be wrapped, leave
it on a line by itself and allow the terminal to apply its own
wrapping rules instead. Fixes a bug where excessive EOL markers
would get added in such situations. Also more accurately handles
skipping ANSI escape sequences in subsequently wrapped content.

Include a word-wrapping test in the selftests to avoid regressing
here.


No differences found