fix do-end when cursor on different line