From 28744ebc9bf52f7a8fc95c48a687fdbfb66bbde4 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 12 Jan 2006 02:33:30 +0000 Subject: [PATCH] (get_surrounding_text): Always pop ic->plist. (reset_ic): Don't reset ic->plist. --- src/input.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/input.c b/src/input.c index 693af85..54f410f 100644 --- a/src/input.c +++ b/src/input.c @@ -481,10 +481,8 @@ get_surrounding_text (MInputContext *ic, int len) mplist_push (ic->plist, Minteger, (void *) len); minput__callback (ic, Minput_get_surrounding_text); if (MPLIST_MTEXT_P (ic->plist)) - { - mt = MPLIST_MTEXT (ic->plist); - mplist_pop (ic->plist); - } + mt = MPLIST_MTEXT (ic->plist); + mplist_pop (ic->plist); return mt; } @@ -2568,9 +2566,6 @@ reset_ic (MInputContext *ic, MSymbol ignore) ic->status = status; ic->status_changed = 1; } - - M17N_OBJECT_UNREF (ic->plist); - ic->plist = mplist (); } static int -- 1.7.10.4