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

🐞 Selecting empty line selects line above as well #137

Closed thecoolwinter closed 1 year ago

thecoolwinter commented 1 year ago

Selecting an empty line will select the line above as well. See screen capture.

https://user-images.githubusercontent.com/35942988/215297544-eeff8736-e6bf-42c7-a8bc-2bf86e2cb1a6.mov

thecoolwinter commented 1 year ago

Looks like this is an issue with TextKit:

https://github.com/krzyzanowskim/STTextView/blob/41c7c87a552e6286ebea5f348e820b529c6f5662/Sources/STTextView/STTextView%2BSelect.swift#L410