Save `edit` result only when tempfile was modified
mtimes of tempfile prior to editing and after leaving the editor are now compared before changing anything in todolist. If tempfile wasn't modified, todolist (and todo file) is left untouched and user gets appropriate error message.
Showing
Please register or sign in to comment