Skip to content

Instantly share code, notes, and snippets.

@rcmdnk
Last active November 19, 2019 05:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcmdnk/b0bf57d422c875fb70645556d7770091 to your computer and use it in GitHub Desktop.
Save rcmdnk/b0bf57d422c875fb70645556d7770091 to your computer and use it in GitHub Desktop.
--- 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++;
@rcmdnk
Copy link
Author

rcmdnk commented Nov 19, 2019

updated for screen 4.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment