Fixed another crash that could occur when pasting text using CRLF line endings (#228). Fixed an issue where autosave would re-create a deleted file (#222). Fixed an issue where autosave wouldn't save when deactivating the window when using the on_focus_change setting.