about summary refs log tree commit diff stats
path: root/source.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-01-12 03:51:34 -0800
committerKartik K. Agaram <vc@akkartik.com>2024-01-12 03:51:34 -0800
commit4121613fc678d71acaa6213300dac3c321530589 (patch)
tree1f1361dbe2f7cfac820a59ce2c155ec75671e5a5 /source.lua
parent5d4fd4aa93918ae2139a581bae4d9f9579359281 (diff)
downloadlines.love-4121613fc678d71acaa6213300dac3c321530589.tar.gz
don't save settings on error in source editor
Diffstat (limited to 'source.lua')
-rw-r--r--source.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/source.lua b/source.lua
index a4b3603..1aa1f74 100644
--- a/source.lua
+++ b/source.lua
@@ -271,7 +271,6 @@ function source.settings()
   if Settings == nil then Settings = {} end
   if Settings.source == nil then Settings.source = {} end
   Settings.source.x, Settings.source.y, Settings.source.displayindex = App.screen.position()
-  App.screen.width, App.screen.height = App.screen.size()
   File_navigation.cursors[Editor_state.filename] = {cursor1=Editor_state.cursor1, screen_top1=Editor_state.screen_top1}
   return {
     x=Settings.source.x, y=Settings.source.y, displayindex=Settings.source.displayindex,