diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2016-12-14 12:20:53 +0800 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-20 16:40:21 +1100 |
commit | ba14fc8ec91b54be57fdf2ca373e3d140ae2b6d6 (patch) | |
tree | f32dbd642cd1d31cbe1ef08662c37fe6007ea447 /lib/process | |
parent | f59937ad2d75b89d5e5129717f28338d26bae3c7 (diff) | |
download | petitboot-ba14fc8ec91b54be57fdf2ca373e3d140ae2b6d6.zip petitboot-ba14fc8ec91b54be57fdf2ca373e3d140ae2b6d6.tar.gz |
ui/ncurses/text-screen: trim long lines
When a text_screen is given a long line, it'll wrap to the next,
overstepping the left margin.
We already have folded text for flowed text screens, so just trim long
lines at the correct column.
This exposes an off-by-one with the automatic wrapping in
text_screen_set_text(), where we may overrun the last char, so fix that
too.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib/process')
0 files changed, 0 insertions, 0 deletions