Fix previous change.
authorhanda <handa>
Fri, 11 Nov 2005 11:53:52 +0000 (11:53 +0000)
committerhanda <handa>
Fri, 11 Nov 2005 11:53:52 +0000 (11:53 +0000)
example/medit.c

index 6c4bf3f..8416756 100644 (file)
@@ -2204,6 +2204,7 @@ surrounding_text_handler (MInputContext *ic, MSymbol command)
          if (cursor.from + len < 0)
            len = - cursor.from;
          mtext_del (mt, cursor.from + len, cursor.from);
+         cursor.from += len;
        }
       else if (len > 0)
        {