about summary refs log tree commit diff stats
path: root/file.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-14 22:06:08 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-14 22:06:08 -0700
commit15acc38da950bfc0c7c3eec4d1ce8d86989921c7 (patch)
tree1338e51b40ee6d510a7cbfebf1933f1f602f86b3 /file.lua
parentd077ce7f42efd6deab7543e39ffa253222fac71d (diff)
downloadlines.love-15acc38da950bfc0c7c3eec4d1ce8d86989921c7.tar.gz
test: autosave after any shape
Diffstat (limited to 'file.lua')
-rw-r--r--file.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.lua b/file.lua
index 33c624c..d3ccca2 100644
--- a/file.lua
+++ b/file.lua
@@ -2,7 +2,7 @@
 Drawing = require 'drawing'
 
 function load_from_disk(filename)
-  local infile = io.open(filename)
+  local infile = App.open_for_reading(filename)
   local result = load_from_file(infile)
   if infile then infile:close() end
   return result