about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-09-04 15:22:10 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-09-04 15:22:10 -0700
commit529857ad73da8c43ca6b13f4cb3cdd83e0648c57 (patch)
tree995b065ad4460430db8cf8fc0c36a402825e1af9 /main.lua
parentf41513e718a007bbe6d0ae7ccd367f243a625751 (diff)
parente74b92b7333d3382277a6794833126d8e9ebd5cd (diff)
downloadtext.love-529857ad73da8c43ca6b13f4cb3cdd83e0648c57.tar.gz
Merge lines.love
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 0297c26..a244e3f 100644
--- a/main.lua
+++ b/main.lua
@@ -181,10 +181,12 @@ function App.keychord_press(chord, key)
       Settings.source = source_settings
       if run.quit then run.quit() end
       Current_app = 'source'
+      -- preserve any Error_message when going from run to source
     elseif Current_app == 'source' then
       Settings.source = source.settings()
       if source.quit then source.quit() end
       Current_app = 'run'
+      Error_message = nil
     else
       assert(false, 'unknown app "'..Current_app..'"')
     end