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

An attemp to fix the text selection bug #1643

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

EchoEllet
Copy link
Collaborator

@T-P-F
Copy link

T-P-F commented Jan 22, 2024

@singerdmx Thanks for Flutter Quill.

Curious when will this fix be merged? We're in need of it as well.

@EchoEllet
Copy link
Collaborator Author

@singerdmx Thanks for Flutter Quill.

Curious when will this fix be merged? We're in need of it as well.

I will review it once again today and then merge it

@EchoEllet EchoEllet merged commit 14ffc60 into master Jan 22, 2024
3 checks passed
ChangeSource.local);
(selection.baseOffset + len) > 0
? TextSelection.collapsed(
offset: selection.baseOffset + len,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @adil192
Do you know what is len?? in the class HistoryChanged?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

unnecessary file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unnecessary file

Thanks! Don't remember how I created it, I use the command line a lot and sometimes I can make such typos

@@ -218,7 +218,7 @@ class Document {
if (res.node is Line) {
return res;
}
final block = res.node as Block;
final block = res.node as Block; // TODO: Can be nullable, handle this case
Copy link
Contributor

Choose a reason for hiding this comment

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

If this can be nullable, shouldn't it be as Block?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If this can be nullable, shouldn't it be as Block?

I just caught the bug, I didn't write it and I honestly don't know why

@EchoEllet EchoEllet deleted the fix/text-selection-exception branch February 16, 2024 23:42
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.

When entering text, selecting all, and then using Command+Z to undo results in an error.
5 participants