From a86d4b3ac19a2fc830e7e00ef0f7d1d241c7aa2b Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 26 Jul 2004 04:21:20 +0000 Subject: [PATCH] (redraw_cursor): Fix checking of redrawing area. --- example/medit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.10.4