Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

修复cut操作的撤销栈记录不正确的问题 #3241

Open
wants to merge 1 commit into
base: dev-1.5.0
Choose a base branch
from

Conversation

zzkaqq
Copy link

@zzkaqq zzkaqq commented May 8, 2018

1.撤销栈为空时直接执行cut操作,应该先一次记录当前的副本,否则无法正确撤销

2.cut操作记录撤销栈时应该save剪切完成后的副本而不是剪切前的(否则会导致cut操作后的内容副本不被记录,如果cut之后立刻执行撤销,看起来会是连续撤销了两步)

1.cut操作的时候对撤销栈的记录应该是记录剪切后的副本而不是剪切前的(会导致cut操作后执行撤销动作,多撤销了一步的问题)

2.撤销栈为空时直接执行cut操作,应该先一次记录当前的副本(和其他操作的撤销栈逻辑相同)
@zuohuadong
Copy link

已经合并到 notadd/neditor#84

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants