discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=7f53f4daf784d073f9c4c0ad3072f146314bbde7

commit 7f53f4daf784d073f9c4c0ad3072f146314bbde7
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Dec 15 17:29:44 2015 -0500

    do not force full textgrid width update if preedit_str is ""
    
    in many cases this will be the value which has been set, so ignoring it
    will yield moderate performance improvements
    
    Reviewed-by: Boris Faure <bill...@gmail.com>
---
 src/bin/termio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;

-- 


Reply via email to