From: handa Date: Tue, 8 Nov 2005 12:50:11 +0000 (+0000) Subject: (surrounding_text_handler): Fix previous change. X-Git-Tag: REL-1-3-0~83 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=997dedc00b8efa20918c936987a82b4aa9eeeb20;p=m17n%2Fm17n-lib.git (surrounding_text_handler): Fix previous change. --- diff --git a/example/medit.c b/example/medit.c index df7c7ba..93aa40a 100644 --- a/example/medit.c +++ b/example/medit.c @@ -2201,14 +2201,14 @@ surrounding_text_handler (MInputContext *ic, MSymbol command) if (len < 0) { - if (corsor.from + len < 0) - len = - corsor.from; + if (cursor.from + len < 0) + len = - cursor.from; delete_char (len); } else if (len > 0) { - if (corsor.from + len > nchars) - len = nchars - corsor.from; + if (cursor.from + len > nchars) + len = nchars - cursor.from; delete_char (len); } }