Last active
November 19, 2019 05:31
-
-
Save rcmdnk/b0bf57d422c875fb70645556d7770091 to your computer and use it in GitHub Desktop.
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
--- a/src/ansi.c | |
+++ b/src/ansi.c | |
@@ -728,6 +728,10 @@ | |
LPutChar(&curr->w_layer, &omc, ox, oy); | |
LGotoPos(&curr->w_layer, curr->w_x, curr->w_y); | |
} | |
+ if (curr->w_mbcs) | |
+ { | |
+ curr->w_rend.mbcs = curr->w_mbcs = 0; | |
+ } | |
break; | |
} | |
font = curr->w_rend.font; | |
--- a/src/display.c | |
+++ b/src/display.c | |
@@ -613,7 +613,7 @@ | |
D_x += D_AM ? 1 : -1; | |
D_mbcs = 0; | |
} | |
- else if (utf8_isdouble(c)) | |
+ else if (utf8_isdouble(c) || (c >= 0xd800 && c < 0xe000)) | |
{ | |
D_mbcs = c; | |
D_x++; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated for screen 4.7.0