Skip to content

Instantly share code, notes, and snippets.

@kofuk
Created August 1, 2020 16:15
Show Gist options
  • Save kofuk/5d40f62b67e4e070ef6e10c055ab871d to your computer and use it in GitHub Desktop.
Save kofuk/5d40f62b67e4e070ef6e10c055ab871d to your computer and use it in GitHub Desktop.
--- src/xfns.c.orig 2020-08-02 01:13:44.793716250 +0900
+++ src/xfns.c 2020-08-02 01:09:34.189729711 +0900
@@ -2533,6 +2533,8 @@
static XIMStyle
best_xim_style (XIMStyles *xim)
{
+ if (!xim) return XIMPreeditNothing | XIMStatusNothing;
+
int i, j;
int nr_supported = ARRAYELTS (supported_xim_styles);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment