From 0cc8c706ffc4da107df402e3eac977aefb75f6dc Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 17 Sep 2022 16:33:36 -0700 Subject: [PATCH] isolate some tests from settings --- source.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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