(update_selection): Fix for the case that the selection
authorhanda <handa>
Tue, 14 Sep 2004 02:38:02 +0000 (02:38 +0000)
committerhanda <handa>
Tue, 14 Sep 2004 02:38:02 +0000 (02:38 +0000)
is just one line.

example/medit.c

index bcd7a5c..e1477df 100644 (file)
@@ -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
     {