From: handa Date: Mon, 26 Jul 2004 12:52:17 +0000 (+0000) Subject: (get_gstring): If cursor_width or cursor_bidi is changed, don't X-Git-Tag: REL-1-1-0~58 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9732ded18e941580362a89fb681d2b34255d8fd;p=m17n%2Fm17n-lib.git (get_gstring): If cursor_width or cursor_bidi is changed, don't use a cache. --- diff --git a/src/draw.c b/src/draw.c index 8069d40..25e2867 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1512,7 +1512,9 @@ get_gstring (MFrame *frame, MText *mt, int pos, int to, MDrawControl *control) || gstring->tick != frame->tick || memcmp (control, &gstring->control, (char *) (&control->with_cursor) - - (char *) (control))) + - (char *) (control)) + || control->cursor_width != gstring->control.cursor_width + || control->cursor_bidi != gstring->control.cursor_bidi) { mtext_detach_property (prop); gstring = NULL;