Skip to content

fix(tui): expand tabs at paint time so the screen matches the frame - #561

Draft
justrach wants to merge 1 commit into
mainfrom
cursor/tui-paint-tabs-554f
Draft

fix(tui): expand tabs at paint time so the screen matches the frame#561
justrach wants to merge 1 commit into
mainfrom
cursor/tui-paint-tabs-554f

Conversation

@justrach

Copy link
Copy Markdown
Owner

Last paint hole after the C0 fix: a tab was counted as one column and written raw, so pad() left residue (or overflowed) once the emulator jumped to the next stop of 8.

paintRow now expands tabs to spaces at measure and write time. SGR stays; other C0 still drops. A hover row the frame no longer reaches clears instead of staying armed.

zig build tui-test -Dtest-filter="paint" 48/48; hover 31/31.

Open in Web Open in Cursor 

Tab was counted as one column and written raw, so pad() left residue
or overflowed once the emulator advanced to the next stop of 8.
Measure and write now agree; a hover row the frame no longer reaches
clears instead of staying armed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants