matrix-org / matrix-rich-text-editor

Matrix Rich Text Editor
https://matrix-org.github.io/matrix-rich-text-editor/
Apache License 2.0
84 stars 20 forks source link

[Android] Add special treatment for indexes of replacement spans #863

Closed jmartinesp closed 8 months ago

jmartinesp commented 8 months ago

This workarounds an issue with indexes around mentions, which placed the cursor inside the ReplacementSpan when backspacing a mention. I tried modifying several other index mapping functions, but whatever made mentions work well broke indexes in lists or multiple paragraphs.

sonarcloud[bot] commented 8 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information