aboutsummaryrefslogtreecommitdiff
path: root/core/events.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/events.lua')
-rw-r--r--core/events.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/events.lua b/core/events.lua
index 732b5d50..fffa5aca 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -372,11 +372,12 @@ add_handler('quit',
end
end
if any then
- if tonumber( cocoa_dialog( 'yesno-msgbox', {
+ if cocoa_dialog( 'yesno-msgbox', {
title = 'Save?',
text = 'Save changes before quitting?',
- ['informative-text'] = list..'\nYou will have to save changes manually.'
- } ) ) ~= 2 then return false end
+ ['informative-text'] = list..'\nYou will have to save changes manually.',
+ ['no-newline'] = true
+ } ) ~= '2' then return false end
end
textadept.io.save_session()
return true