Skip to content
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 fix #183

Closed
wants to merge 4 commits into from
Closed

Conversation

yescorp
Copy link
Collaborator

@yescorp yescorp commented Feb 9, 2023

Also changes history controller behavior:

  • Doesn't add initial record
  • Adds record on any change if stack is empty
  • NewLine adds record both before and after

@@ -809,6 +809,7 @@ class CodeController extends TextEditingController {
@override
void dispose() {
_debounce?.cancel();
historyController.dispose();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes all of the problems with disposing the timer in tests =)

@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Merging #183 (a619a5c) into main (e2b10a5) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #183      +/-   ##
==========================================
+ Coverage   82.21%   82.26%   +0.05%     
==========================================
  Files          85       85              
  Lines        2552     2560       +8     
==========================================
+ Hits         2098     2106       +8     
  Misses        454      454              
Impacted Files Coverage Δ
lib/src/code_field/code_controller.dart 79.62% <100.00%> (+0.06%) ⬆️
lib/src/history/code_history_controller.dart 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@yescorp yescorp requested a review from alexeyinkin February 9, 2023 13:05
@yescorp yescorp marked this pull request as ready for review February 9, 2023 13:05
@yescorp
Copy link
Collaborator Author

yescorp commented Feb 14, 2023

Closing this PR because it is easier to create another branch

@yescorp yescorp closed this Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undo sets the cursor to the beginning of the document
1 participant