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

🐞 Text gets misaligned as it is typed #151

Closed ryohajika closed 1 year ago

ryohajika commented 1 year ago

Description

Thank you so much for all of your hard works! This project is amazing... Here are few things I found from the latest alpha release in basic text editing.

1) Vertical text alignment is off somehow

Screenshot 2023-02-27 at 12 28 22 PM

2) At the beginning of text edit, no colorization of text (in my case, .swift file) until 10th line did happen 3) When the file you're editing is short and blank spaces are there at the bottom of the file, you cannot click there to move the edit cursor to the most bottom line

I hope this report helps future improvement...

Environment: MBP 14-inch, 2021, M1P, Ventura 13.2.1

To Reproduce

make a new text file, open it in CodeEdit, start edit it then you would see all three.

Expected behavior

1) It should be aligned vertically. 2) Live interpreter(?) should detect the file format and highlight keywords in the editor 3) Should be able to click the empty part of the file on editor to make the text editor cursor jump to the bottom line

Version information

CodeEdit: [Version 0.0.2-alpha (27)] macOS: [13.2.1] Xcode: [14.2]

Related issues

luah5 commented 1 year ago

I've tried really hard to replicate this issue after 0.0.3-alpha.32 and I'm under the assumption that it is fixed, can someone else validate/invalidate my point, @austincondiff @thecoolwinter?

shot
lukepistrol commented 1 year ago

@ryohajika can you confirm this is still happening on the latest release?

ryohajika commented 1 year ago

@lukepistrol @luah5 now this error is gone I guess! Thanks so much for your effort:)

(now there's another error with the CodeTextEditApp 0.0.3-alpha.32 release that you get your text glitched and destroyed when you edit some text and do undoing. I may setup another error report on the repo for the app.)

luah5 commented 1 year ago

Glad to know that this is fixed @ryohajika!