Zero query suggestion shouldn't be triggered when committing with key event
It turned out that our zero query suggestion is implemented in an ad-hoc way, by naively and recklessly calling Session::Suggest from Session::Commit. This is actually dangerous because most of callers of Session::Commit never expect that Session::Commit could be called Session::Suggest internally as a side effect. This CL addresses such situation.
Anyway, oru current implementation of zero query suggestion is considered to be bug-prone and some refactoring might be required.
Closes Issue 239.
BUG= Issue mozc:239
TEST=unittest
git-svn-id: http://mozc.googlecode.com/svn/trunk/src/session@269 a6090854-d499-a067-5803-1114d4e51264
3 files changed