-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
History controller refactored #187
Conversation
yescorp
commented
Feb 15, 2023
•
edited
Loading
edited
- Resolves Undo sets the cursor to the beginning of the document #132
- Resolves Undo action issue #186
- Resolves For discussion: History controller interaction with folding #193
Codecov Report
@@ Coverage Diff @@
## main #187 +/- ##
==========================================
+ Coverage 82.24% 82.51% +0.26%
==========================================
Files 85 85
Lines 2557 2602 +45
==========================================
+ Hits 2103 2147 +44
- Misses 454 455 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
expect(controller.historyController.stack.length, 6); | ||
expect(controller.code.text, code2.text); | ||
expect(controller.selection, selection2); | ||
for (int i = manualHistoryRecords.length - 2; i >= 0; i--) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (int i = manualHistoryRecords.length - 2; i >= 0; i--) { | |
for (int i = manualHistoryRecords.length - 1; --i >= 0; ) { |
firstCode ??= controller.code; | ||
firstSelection ??= controller.selection; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
codeAfterFirstEdit, selectionAfterFirstEdit
// Set after the first change.