From 997dedc00b8efa20918c936987a82b4aa9eeeb20 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 8 Nov 2005 12:50:11 +0000 Subject: [PATCH] (surrounding_text_handler): Fix previous change. --- example/medit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } } -- 1.7.10.4