Fixed the bug that: duplicate commit after input a phrase, press enter, then press shift-space