From ff4ebeb05fe6ab534365f6de4d7300175808c9da Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 17 Aug 2006 12:09:04 +0000 Subject: [PATCH] (reset_ic): Use shift_state to setup the current state. --- src/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 1.7.10.4