about summary refs log tree commit diff stats
path: root/file.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-05 12:50:33 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-05 12:50:33 -0700
commit569f34fb5b23dc68cbb9be431c14050a0b194945 (patch)
tree2c758c926bb447403aa8588fa293e3e32d88d086 /file.lua
parent386c4c1967a9790d14e9e01195a35a57528b8b3b (diff)
parente0f750913fa653c03a666203e04c59e847e73bff (diff)
downloadview.love-569f34fb5b23dc68cbb9be431c14050a0b194945.tar.gz
Merge text.love
Diffstat (limited to 'file.lua')
-rw-r--r--file.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/file.lua b/file.lua
index e95c14d..98311da 100644
--- a/file.lua
+++ b/file.lua
@@ -37,7 +37,8 @@ function save_to_disk(State)
     error('failed to write to "'..State.filename..'"')
   end
   for _,line in ipairs(State.lines) do
-    outfile:write(line.data, '\n')
+    outfile:write(line.data)
+    outfile:write('\n')
   end
   outfile:close()
 end