Fix the problem that when you click somewhere the cursor did not get moved (rederawn).
Suppress showing autocompletion except for INSERT mode.
Fix #608