Skip to content

Make EditStack correctly report canUndo#69239

Merged
alexdima merged 1 commit intomicrosoft:masterfrom
trevorade:patch-1
Feb 27, 2019
Merged

Make EditStack correctly report canUndo#69239
alexdima merged 1 commit intomicrosoft:masterfrom
trevorade:patch-1

Conversation

@trevorade
Copy link
Contributor

Currently, canUndo() will incorrectly return false in the case that this.past.length is 0 and this.currentOpenStackElement is populated.

You can call undo() and it will do the right thing but there's no indication that you should be able to do it as canUndo() returns false.

Currently, `canUndo()` will incorrectly return false in the case that `this.past.length` is `0` and `this.currentOpenStackElement` is populated.

You can call `undo()` and it will do the right thing but there's no indication that you should be able to do it as `canUndo()` returns false.
@alexdima
Copy link
Member

👍 Nice catch!

@alexdima alexdima added this to the February 2019 milestone Feb 27, 2019
@alexdima alexdima closed this Feb 27, 2019
@alexdima alexdima reopened this Feb 27, 2019
@alexdima alexdima merged commit 2015bca into microsoft:master Feb 27, 2019
@trevorade trevorade deleted the patch-1 branch February 27, 2019 14:24
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
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