Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests/lib/test-fold: Add mbs test with separators | Jeremy Kerr | 2014-09-23 | 1 | -1/+12 |
| | | | | | | | Ensure we're doing the correct thing with mbs + separators in the fold code. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> | ||||
* | lib/fold: Add support for multibyte strings | Jeremy Kerr | 2014-09-23 | 1 | -4/+50 |
| | | | | | | | | | | Currently, the fold_text function doesn't understand multibyte strings, so may break a line in the middle of a multibyte sequence. This change adds multibyte-awareness to the fold code, and uses proper width calculations for the contents of the folded string. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> | ||||
* | lib/fold: Add text fold utility | Jeremy Kerr | 2014-01-31 | 1 | -0/+157 |
We want to fold help text into the ncurses UI, so add a little module to split text into lines. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |