sokoban.love/0179-press_revert_button

6 lines
278 B
Plaintext
Raw Normal View History

2024-03-17 19:12:31 +00:00
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