CodeEditApp / CodeEditSourceEditor

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

Correctly Lose Focus (finish CETV#14) #229

Closed thecoolwinter closed 5 months ago

thecoolwinter commented 5 months ago

Description

Finishes the required changes to make CodeEditTextView#14 work in CESE, once those changes are merged with a package update.

Removes the first responder acquisition when updating cursors, the text view should handle focus state and does so correctly on the main branch. Also fixes a small ordering bug with a check variable related to this issue.

Related Issues

Checklist

Screenshots

N/A

thecoolwinter commented 5 months ago

LGTM! You probably know this, but you can use the trailing closure syntax on the sorted method.

Oh, very true! Didn't catch that.