From 9dda680435070c0e2e18c708a372676ee5740d99 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 11 Nov 2005 11:54:25 +0000 Subject: [PATCH] Cancel previous change. --- src/draw.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/draw.c b/src/draw.c index 373b502..2e5d6b8 100644 --- a/src/draw.c +++ b/src/draw.c @@ -246,7 +246,6 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to, MRealizedFont *rfont; int size = gstring->control.fixed_width; int i; - int cursor_pos = gstring->control.cursor_pos; MLIST_RESET (gstring); gstring->from = from; @@ -441,19 +440,14 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to, NULL, prev->c) != MCHAR_INVALID_CODE)); start--, prev--) - { - if (prev->rface->rfont != this->rface->rfont) - { - prev->rface->rfont = this->rface->rfont; - prev->code = code; - } - if (prev->pos == cursor_pos) - break; - } + if (prev->rface->rfont != this->rface->rfont) + { + prev->rface->rfont = this->rface->rfont; + prev->code = code; + } for (g++; (g->type == GLYPH_CHAR - && g->pos != cursor_pos && g->rface->layouter == this->rface->layouter && (g->rface->rfont == this->rface->rfont || (g->category == GLYPH_CATEGORY_FORMATTER -- 1.7.10.4