]> git.neil.brown.name Git - edlib.git/commit
renderline: fix "width" calculation.
authorNeilBrown <neil@brown.name>
Wed, 30 Aug 2023 22:30:31 +0000 (08:30 +1000)
committerNeilBrown <neil@brown.name>
Wed, 30 Aug 2023 22:57:10 +0000 (08:57 +1000)
commitd5a15281530031bf439e21d532396c7f8c9b7406
treeee7e5a70d87e2b514f36ce57934b9df43f743e1f
parent36ee645b620751b6075e204c47d9bb1d8b81bb3d
renderline: fix "width" calculation.

"width" should be the sum of item widths without reference to wrapping
or tabs.  Maybe tabs should count, but -ve measures would not be useful,
so just ignore them for now.
This allows rtab in menu formats to work.

Also don't include shift_left in the width.  render-lines assumed it did
(which it did, but now doesn't).

Signed-off-by: NeilBrown <neil@brown.name>
lib-renderline.c
render-lines.c