(get_gstring): Don't use the cached gstring if cursor position is
authorhanda <handa>
Thu, 3 Apr 2008 06:17:06 +0000 (06:17 +0000)
committerhanda <handa>
Thu, 3 Apr 2008 06:17:06 +0000 (06:17 +0000)
changed.

src/draw.c

index c8bc8d5..6cca092 100644 (file)
@@ -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)
            {