fix cursor moving in multi-line
Merge pull request #608 from malblue/fix-multiline-cursor

multi-line problem cause showing prompt on top