CodeEditApp / CodeEditTextView

A text editor specialized for displaying and editing code documents. Written in pure Swift.

Home Page:https://codeeditapp.github.io/CodeEditTextView/documentation/codeedittextview/

Repository from Github https://github.comCodeEditApp/CodeEditTextViewRepository from Github https://github.comCodeEditApp/CodeEditTextView

🐞 Layout Pass Protection

thecoolwinter opened this issue Β· comments

Description

Our layout method breaks when reentering the function while a layout pass is ongoing. This has caused bugs related to newline processing, frame changing, and more. Recently a debug assertion was added to ensure the layout pass is begun again while a pass is already in progress.

There are still a few more delegate methods that don't need protection but are still inside the protected area. These delegate methods should be safe to move outside of the protected area, as the internal data structures for line layout at the point that they are being called have been finalized.