about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--source.lua1
-rw-r--r--source_edit.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/source.lua b/source.lua
index 1aa1f74..a4b3603 100644
--- a/source.lua
+++ b/source.lua
@@ -271,6 +271,7 @@ 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,
diff --git a/source_edit.lua b/source_edit.lua
index f58d7e3..e2f9bd0 100644
--- a/source_edit.lua
+++ b/source_edit.lua
@@ -94,7 +94,7 @@ function edit.initialize_state(top, left, right, font, font_height, line_height)
     right = math.floor(right),
     width = right-left,
 
-    filename = love.filesystem.getSourceBaseDirectory()..'/lines.txt',  -- '/' should work even on Windows
+    filename = 'run.lua',
     next_save = nil,
 
     -- undo