CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
504 stars 74 forks source link

🐞 Indentation issue #175

Closed JGeek00 closed 6 months ago

JGeek00 commented 1 year ago

Description

When I'm editing a JSON file, if I hit enter to add a new line, it doesn't start the new line just below the position where I have the cursor on the current one. Instead it starts the new line like 4 spaces to the right.

To Reproduce

See attached video

Expected Behavior

The new line should start with the cursor on the exact same position as I left the previous line

Version Information

CodeEdit: 0.0.3-32 macOS: 13.2.1 Xcode: N/A

Additional Context

No response

Screenshots

https://user-images.githubusercontent.com/47545344/230736086-7b88142b-88ee-4f56-b769-770c5af406d4.mp4

telecter commented 6 months ago

I am unable to reproduce this bug on CodeEdit 0.0.3-alpha (37). Has it been fixed?

austincondiff commented 6 months ago

You are right, it has been fixed with our recent text view replacement.