diff options
| author | cashmere <cashmere@autistici.org> | 2026-03-29 08:39:08 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-03-29 08:39:08 +0200 |
| commit | 97f0dbc31d9e7eed6ac3ae3300968a3d231270fe (patch) | |
| tree | 6d592a74709c5cebf9e8ee813f4d3f27be8711d6 /tests | |
| parent | 11da531e49fca10ac7dab149ac9790d0c5e76bb9 (diff) | |
| download | kitty-graphics-97f0dbc31d9e7eed6ac3ae3300968a3d231270fe.tar.gz | |
fix: skip heading rendering when folded to same visual line
When org folds headings (S-TAB overview mode), the newline after
each heading becomes invisible, causing multiple headings to appear
on the same visual line. posn-at-point then reports col > 1 for
headings that follow the fold ellipsis of a previous heading.
Placing scaled text at col > 1 causes horizontal drift — headings
rendered mid-line overlapping with fold ellipsis and each other.
Fix: org headings always start at buffer column 0. If the computed
terminal column is not 1, the heading is in a folded context where
rendering at scale would be wrong. Skip it (treat as not visible),
erase any previous placement, and let the refresh cycle re-place
it when unfolded.
Root cause identified via debug log analysis showing:
Before fold: all headings at col=1 (correct)
After S-TAB: headings at col=21/24 on same row (wrong)
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
