You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
The IDE only formats the given input (selection or whole file), the editor handles the content changes after the formatting action. I think it would be better if this issue is reported in the editor's repository.
itsaky
changed the title
[Bug]: Undoing a "Format code" action
[Bug]: Invalid cursor placement after "Format code" action
Aug 23, 2023
It's actually because the editor does not record where the cursor is when text is changed. The cursor just shifts as primitive text actions(insert or delete) are performed.
I'll improve undo/redo experience in this case soon.
What happened?
Undoing a "Format code" (applying to a selection or the whole file) action places the cursor all the way at the end of the file.
What's the expected behavior?
The cursor should be right where it was before the code format.
What version of AndroidIDE you're using?
v2.5.2 (debug builds)
Relevant log output
No response
Duplicate issues
Code of Conduct
The text was updated successfully, but these errors were encountered: