mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[GH-ISSUE #200] faketerm.Diff doesn't seem to correctly handle partial cells #114
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mum4k on GitHub (May 4, 2019).
Original GitHub issue: https://github.com/mum4k/termdash/issues/200
This only has impact on the readability of test outputs.
Partial cells are cells in the buffer that should not contain a rune, because the previous cell contains a full-width unicode rune. Full-width unicode runes that two cells when printed on the terminal.
The partial cell is printed out even though it should be skipped:
The bug seems to be here, we print out the rune even if it is is partial:
github.com/mum4k/termdash@07850c79a8/internal/faketerm/diff.go (L72-L75)And here:
github.com/mum4k/termdash@07850c79a8/internal/faketerm/faketerm.go (L130-L133)