sokoban.love/0179-press_revert_button

6 lines
278 B
Plaintext

press_revert_button = function()
Show_menu = nil
love.filesystem.remove(Directory..Current_pane.filename)
-- As a sort of undo, we don't mess with the bufferr. Conservatively indicate that there are unsaved changes.
Current_pane.editor_state.next_save = Current_time + 3
end