-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug with adding combining chars to a full-width char
the logic was incorrectly sending the combinin char to x-1, but that assumed a wcwidth==1 char. save last printed x coord and use that instead. xterm's ansi output for this is a little strange. unlike other `expected.ansi` files, cat-ing this one to stdout doesn't seem to render the correct output, and if you peek at its contents you'll see some "\xef\xbf\xbf" (U+FFFF) which is an invalid codepoint. in any case, it still picks up the regression so i'm adding it.
- Loading branch information
Showing
4 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#5[0maёb[0m | ||
#5[0mcёd[0m | ||
|
||
|
||
#5[0mI̤ͯ[0m | ||
#5[0mI̤ͯ[0m | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters