CodeEditApp / CodeEditSourceEditor

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

🐞 Highlighting slowly disappears as user scrolls down #109

Closed nomilious closed 1 year ago

nomilious commented 1 year ago

Description

CodeEdit app isn't highlighting all lines of code. It's highlighting about 85% of lines displayed in the window. To fix this I need to scroll down all the file.(after scrolling all file the highlighting remains).

BUT: there is a scenario when scrolling doesn't help: if last few lines of file are not empty, then the'll not be highlighted. To fix this I need to add some empty lines at the end of file.

To Reproduce

  1. Open a file with an implemented highlighting(i.e .py file). The file must be longer than the CodeEdit app height.

Expected behavior

All the file is highlighted

Version information

CodeEdit: [e.g. 1.0 (1)] macOS: [e.g. 13.1.0] Xcode: [e.g. 14.2]

Additional context

No response

austincondiff commented 1 year ago

I'll just add that as you scroll down, the amounted text in the viewport goes higher and higher until you can't see any highlighted text at all.

Moving to CodeEditTextView

thecoolwinter commented 1 year ago

Is this still an issue with the most up to date build? I can't reproduce this.

nomilious commented 1 year ago

Yes, it's. Issue is in the first img: issue issue__2

Version information

CodeEdit: 0.0.1-alpha (25) macOS: 13.1.2 Xcode: 14.2

austincondiff commented 1 year ago

This should be fixed in the next release. If it is not please comment/reopen.