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

[SuperEditor] - Exception when removing action tags slash character within some text #2373

Open
alterhuman opened this issue Oct 9, 2024 · 4 comments
Labels
type_bug Something isn't working

Comments

@alterhuman
Copy link

alterhuman commented Oct 9, 2024

In the super_editor action tags example in the example app, if you type some text and then move the caret in between the text and then add / and delete it, the app crashes with the following error:

The following _Exception was thrown while processing the key message handler:
Exception: removeAttribution() did not satisfy start < 0 and start > end, start: 8, end: 7

To Reproduce

  1. Run the super_editor example app
  2. Go to action tags from the sidebar
  3. Type 'hello world'
  4. Move the caret between hello and world.
  5. Add a /
  6. Then delete it

Platform
MacOS

Flutter version
Flutter 3.25.0-1.0.pre.147 • channel master

@matthew-carroll @angelosilvestre please assist

@alterhuman alterhuman added the type_bug Something isn't working label Oct 9, 2024
@alterhuman alterhuman changed the title [BUG] - Exception when removing action tags slash character within some text [SuperEditor] - Exception when removing action tags slash character within some text Oct 9, 2024
@KevinBrendel
Copy link
Contributor

Might be the same as #2240.
In the comment there I mentioned a fix for this.

@alterhuman
Copy link
Author

Yes this is the exact issue. Thank you so much @KevinBrendel

@angelosilvestre can #2240 solution please be merged with the main repo? I don't want to maintain a fork just for this.

@angelosilvestre
Copy link
Collaborator

@alterhuman I'll try to take a look at this over the weekend.

@alterhuman
Copy link
Author

alterhuman commented Oct 12, 2024

@angelosilvestre thank you so much! Really appreciate it man.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type_bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants