Promote characters to wide if they have space available after#286
Conversation
|
When trying to build I get some compiler errors: https://pastebin.com/fp0VtvDJ |
|
@michaelneuper you have to use zig 15.2. as I see you use homebrew: |
1c7a679 to
78dadbc
Compare
|
@claude Review this |
|
Claude finished @emil-e's task in 8m 40s —— View job Code review for #286
SummaryThe patch is a nice generalization — handing each adjustable glyph off to its own function, hoisting The native test suite is red on all four FindingsBUG — QUESTION — NIT — NIT — tab vs space indentation in the new tests ( Not findings
|
03f8e61 to
e0c74fb
Compare
e0c74fb to
80b97b0
Compare
This PR improves glyph rendering by allowing characters to dynamically expand into adjacent empty space, rather than always being squashed to fit their allocated cell width.
What changed
Previously, a glyph was scaled to fit either 1 or 2 cells depending on whether it was marked as wide. Now, if a glyph is wider (in aspect ratio) than its allocated slot, the renderer checks if the following characters are spaces. If so, it shrinks those spaces to zero-width via Emacs display properties, effectively claiming their cell width for the glyph while maintaining monospace alignment.
Key details
(space :width 0)) to reclaim space without mutating buffer text.Files changed
char-after,space, and:widthto interned symbols