fix reset modify status timing at undo-buffer enpty check.
fix reset modify status timing at undo-buffer enpty check.

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