From: handa Date: Thu, 12 Jan 2006 02:33:30 +0000 (+0000) Subject: (get_surrounding_text): Always pop ic->plist. X-Git-Tag: REL-1-3-1~14 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=28744ebc9bf52f7a8fc95c48a687fdbfb66bbde4;p=m17n%2Fm17n-lib.git (get_surrounding_text): Always pop ic->plist. (reset_ic): Don't reset ic->plist. --- 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