From: handa Date: Thu, 3 Apr 2008 06:17:06 +0000 (+0000) Subject: (get_gstring): Don't use the cached gstring if cursor position is X-Git-Tag: REL-1-5-2~27 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a27224f17784bff37cb2be044fd8c6564c4d87b5;p=m17n%2Fm17n-lib.git (get_gstring): Don't use the cached gstring if cursor position is changed. --- diff --git a/src/draw.c b/src/draw.c index c8bc8d5..6cca092 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1516,6 +1516,7 @@ get_gstring (MFrame *frame, MText *mt, int pos, int to, MDrawControl *control) || memcmp (control, &gstring->control, (char *) (&control->with_cursor) - (char *) (control)) + || control->cursor_pos != gstring->control.cursor_pos || control->cursor_width != gstring->control.cursor_width || control->cursor_bidi != gstring->control.cursor_bidi) {