(compose_glyph_string): Don't run flt striding over the
authorhanda <handa>
Thu, 3 Apr 2008 06:03:15 +0000 (06:03 +0000)
committerhanda <handa>
Thu, 3 Apr 2008 06:03:15 +0000 (06:03 +0000)
cursor position.

src/draw.c

index a29743a..c8bc8d5 100644 (file)
@@ -549,6 +549,7 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to,
 
              for (g++;
                   (g->type == GLYPH_CHAR
+                   && g->g.from != gstring->control.cursor_pos
                    && g->rface->layouter == this->rface->layouter
                    && (g->rface->rfont == this->rface->rfont
                        || (g->category == GLYPH_CATEGORY_FORMATTER