From: handa Date: Thu, 17 Aug 2006 12:09:04 +0000 (+0000) Subject: (reset_ic): Use shift_state to setup the current state. X-Git-Tag: REL-1-3-4~91 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff4ebeb05fe6ab534365f6de4d7300175808c9da;p=m17n%2Fm17n-lib.git (reset_ic): Use shift_state to setup the current state. --- diff --git a/src/input.c b/src/input.c index 4f2fa90..898b1a0 100644 --- a/src/input.c +++ b/src/input.c @@ -2508,8 +2508,6 @@ reset_ic (MInputContext *ic, MSymbol ignore) MDEBUG_PRINT ("\n [IM] reset\n"); - ic_info->state = (MIMState *) MPLIST_VAL (im_info->states); - ic_info->prev_state = NULL; ic_info->map = ic_info->state->map; ic_info->state_key_head = ic_info->key_head = 0; MLIST_RESET (ic_info); @@ -2560,6 +2558,8 @@ reset_ic (MInputContext *ic, MSymbol ignore) mtext_reset (ic_info->preedit_saved); ic_info->state_pos = ic->cursor_pos = 0; + ic_info->state = ic_info->prev_state = NULL; + shift_state (((MIMState *) MPLIST_VAL (im_info->states))->name); status = ic_info->state->title ? ic_info->state->title : im_info->title; if (ic->status != status) {