about summary refs log tree commit diff stats
path: root/source.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-17 16:33:36 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-17 16:33:36 -0700
commit0cc8c706ffc4da107df402e3eac977aefb75f6dc (patch)
tree852a784f2bfe3a9604b8988c4c5d89d797836eff /source.lua
parent287050d598184943209b564657cb1e29ff641fd7 (diff)
downloadlines.love-0cc8c706ffc4da107df402e3eac977aefb75f6dc.tar.gz
isolate some tests from settings
Diffstat (limited to 'source.lua')
-rw-r--r--source.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/source.lua b/source.lua
index 5bcb154..c752604 100644
--- a/source.lua
+++ b/source.lua
@@ -334,7 +334,9 @@ function source.keychord_pressed(chord, key)
 --?     print('done setting window')
     -- try to restore position if possible
     -- if the window gets wider the window manager may not respect this
-    source.set_window_position_from_settings(Settings.source)
+    if not App.run_tests then
+      source.set_window_position_from_settings(Settings.source)
+    end
     return
   end
   if chord == 'C-g' then