Skip to content

Instantly share code, notes, and snippets.

@zmike
Created December 15, 2015 22:10
Show Gist options
  • Select an option

  • Save zmike/8fdcfab789bc9170146b to your computer and use it in GitHub Desktop.

Select an option

Save zmike/8fdcfab789bc9170146b to your computer and use it in GitHub Desktop.
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 8b04b81..d75f8ab 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -4821,7 +4821,7 @@ _smart_apply(Evas_Object *obj)
evas_object_textgrid_update_add(sd->grid.obj, ch1, y,
ch2 - ch1 + 1, 1);
}
- if (sd->preedit_str)
+ if (sd->preedit_str && sd->preedit_str[0])
{
Eina_Unicode *uni, g;
int len = 0, i, jump, xx, backx;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment