Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Cut text between characters, never inside one
The index description was cut at a byte count, which could split a multibyte character and leave an invalid sequence on the page. Commit subjects already backed up to the start of the character, so html_ntxt now does that for every caller.
Diffstat (limited to 'source')
-rw-r--r--source/html.c6
-rw-r--r--source/html.h5
-rw-r--r--source/ui-shared.c8
3 files changed, 10 insertions, 9 deletions