未验证 提交 2015bca4 编写于 作者: A Alexandru Dima 提交者: GitHub

Merge pull request #69239 from trevorade/patch-1

Make EditStack correctly report canUndo
......@@ -210,7 +210,7 @@ export class EditStack {
}
public canUndo(): boolean {
return (this.past.length > 0);
return (this.past.length > 0) || this.currentOpenStackElement !== null;
}
public redo(): IUndoRedoResult | null {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册