From a27224f17784bff37cb2be044fd8c6564c4d87b5 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 3 Apr 2008 06:17:06 +0000 Subject: [PATCH] (get_gstring): Don't use the cached gstring if cursor position is changed. --- src/draw.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 1.7.10.4