copy correct warning message

Not really useful here, but other forks might make use of it.
This commit is contained in:
Kartik K. Agaram 2023-12-07 01:08:09 -08:00
parent c4333b8da5
commit 366d806515
1 changed files with 6 additions and 1 deletions

View File

@ -219,7 +219,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
@ -367,3 +367,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