Commits
- Commit:
bd4a08a74023593128f1f6fac9e0f4a093a8441f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
start to refactor the rendering
Previously each vline (visual line) had a full copy of its associated
string, this changes it so it only slices a part of the parent line.
Reduces significantly the memory usage.
This actually worsen the emojify-link glitch reported by Freezr after
the some recent refactoring in the wrapping code. Not a big deal since
I'm about to restructure the whole rendering bit by bit (hopefully!)
- Commit:
b0266e30b490378eb3f3880d63042a3f8af33ca5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
account for the prefix width when wrapping lines
- Commit:
6b91e1041d28dd381315414c359c84c2d1fa2d93
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove wrap_one, use an extra parameter for wrap_text
- Commit:
d5e0ee089932fa61ce56746c09c77019353d5614
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use libgrapheme for text reflowing
unlike the previous hack, libgrapheme is UNICODE 15.0 compliant (at the
time of writing) and provides some nice API. While here, drop the hard
wrap method for preformatted blocks: always use the normal wrapping.
Since libgrapheme is not yet widely available, future commits will
probably add a bundled version to ease packaging. I'll also start to
replace various home-grown UNICODE/utf8 handling routines with functions
from libgrapheme.
- Commit:
4cd67caa74b004977098c2d1927cf8e28dd4c9ed
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move some unicode-related code in u/