jmacdonald / scribe

Text editor components
MIT License
173 stars 7 forks source link

Add ability to replace buffer content #24

Closed jmacdonald closed 8 months ago

jmacdonald commented 8 months ago

In preparation for format tool support in Amp, we need to be able to replace buffer contents in-place. This PR builds out that functionality in a new replace_content method on the buffer type, and then updates the reload method to leverage that.