projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6491b8
)
(redraw_cursor): Fix checking of redrawing area.
author
handa
<handa>
Mon, 26 Jul 2004 04:21:20 +0000
(
04:21
+0000)
committer
handa
<handa>
Mon, 26 Jul 2004 04:21:20 +0000
(
04:21
+0000)
example/medit.c
patch
|
blob
|
history
diff --git
a/example/medit.c
b/example/medit.c
index
31bbf1a
..
a7067c0
100644
(file)
--- 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;