about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 9624012..196ef5a 100644
--- a/main.lua
+++ b/main.lua
@@ -317,6 +317,11 @@ function schedule_save()
   end
 end
 
+-- make sure to save before quitting
+function love.quit()
+  save_to_disk(Lines, Filename)
+end
+
 function App.mousepressed(x,y, mouse_button)
   if Search_term then return end
   propagate_to_button_handlers(x,y, mouse_button)