Skip to content

Commit

Permalink
Don't flush in switch_input_mode func on PREEDIT_NONE mode.
Browse files Browse the repository at this point in the history
On PREEDIT_NONE mode, we don't need to flush preedit text.
I've missed out modifying ibus_hangul_engine_switch_input_mode()
function.

#69
  • Loading branch information
choehwanjin committed Oct 6, 2019
1 parent 013d713 commit 1562e27
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -1826,6 +1826,11 @@ ibus_hangul_engine_switch_input_mode (IBusHangulEngine *hangul)
input_mode = INPUT_MODE_HANGUL;
}

if (hangul->preedit_mode == PREEDIT_MODE_NONE) {
hangul_ic_reset (hangul->context);
ustring_clear (hangul->preedit);
}

ibus_hangul_engine_set_input_mode (hangul, input_mode);
}

Expand Down

0 comments on commit 1562e27

Please sign in to comment.