1.fix the edit bug when edit is empty,the insert line function is not working.
2.fix the caret bug for delete line.
3.fix the bug for delete the last line.