Fix cursor movement when it is at the end of line and width
Fix cursor movement when it is at the end of line and width

snmsts/lem,snmsts/lem,snmsts/lem,cxxxr/lem,cxxxr/lem,cxxxr/lem,cxxxr/lem,snmsts/lem