Fix push incorrect data to undo-list when cursor over the EOF mark.
Fix push incorrect data to undo-list when cursor over the EOF mark.

mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume