From: handa Date: Tue, 14 Sep 2004 02:38:02 +0000 (+0000) Subject: (update_selection): Fix for the case that the selection X-Git-Tag: REL-1-2-0~191 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=2dd3d8531e268977adb0aa3d7974c4bf50ac6dcf;p=m17n%2Fm17n-lib.git (update_selection): Fix for the case that the selection is just one line. --- diff --git a/example/medit.c b/example/medit.c index bcd7a5c..e1477df 100644 --- a/example/medit.c +++ b/example/medit.c @@ -565,12 +565,6 @@ update_selection () if (to <= sel_start.to) { sel_end = sel_start; - if (to >= sel_end.to) - { - GLYPH_INFO (sel_start.from, to, info); - sel_end.y1 = sel_end.y0 + info.y + info.metrics.height; - sel_end.to = info.line_to; - } } else {