timbrel / GitSavvy

Full git and GitHub integration with Sublime Text
MIT License
1.9k stars 135 forks source link

Set `NO_UNDO` for basically all regions as an optimization #1896

Closed kaste closed 3 months ago

kaste commented 3 months ago

Whenever we mark something in a read-only view we can be sure that a practical "undo" is not in reach for the user.

When writing the commit message on the other hand we re-compute the regions in "on_selection_modified", making the undo-stack unnecessary.