about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-12-07 01:17:11 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-12-07 01:17:11 -0800
commit17810bf7668124b3ecc3dc7b9b9bacef83216a83 (patch)
tree4e019bc3abbf5428f51eb1062ca684b6c5be77b0 /main.lua
parent972b198e5fa845e841170bf3455329bab3befc6d (diff)
parent366d806515a724d2ad46900de235e42349d181d0 (diff)
downloadtext.love-17810bf7668124b3ecc3dc7b9b9bacef83216a83.tar.gz
Merge lines.love
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 61b5939..dd9032c 100644
--- a/main.lua
+++ b/main.lua
@@ -217,7 +217,7 @@ function App.keychord_press(chord, key)
   Skip_rest_of_key_events = nil
   if current_app_is_warning() then
     if chord == 'C-c' then
-      love.system.setClipboardText(Error_message)
+      love.system.setClipboardText(warning_message())
     else
       clear_warning()
       Skip_rest_of_key_events = true
@@ -365,3 +365,8 @@ function clear_warning()
   assert(type(Current_app) == 'table')
   Current_app = Current_app.next_app
 end
+
+function warning_message()
+  assert(type(Current_app) == 'table')
+  return Current_app.message
+end