From: handa Date: Mon, 26 Jul 2004 04:21:20 +0000 (+0000) Subject: (redraw_cursor): Fix checking of redrawing area. X-Git-Tag: REL-1-1-0~69 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a86d4b3ac19a2fc830e7e00ef0f7d1d241c7aa2b;p=m17n%2Fm17n-lib.git (redraw_cursor): Fix checking of redrawing area. --- diff --git a/example/medit.c b/example/medit.c index 31bbf1a..a7067c0 100644 --- a/example/medit.c +++ b/example/medit.c @@ -458,12 +458,12 @@ redraw_cursor (int clear) MDrawMetric rect; int y0 = cur.y0, y1 = cur.y1; - if (beg != cur.from) + if (beg < cur.from) { TEXT_EXTENTS (beg, cur.from, rect); y0 -= rect.height; } - if (end != cur.to) + if (end > cur.to) { TEXT_EXTENTS (cur.to, end, rect); y1 += rect.height;