Fix a bug: Missing the first word of prompt message.
In previous version, If user move cursor, It will miss one
character of prmpt meassage or crash.