Fixed locking the editor on deleting the current file - #20.