diff options
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index fa878c39..ced71eb8 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -323,10 +323,14 @@ end function close(buffer) textadept.check_focused_buffer(buffer) if buffer.dirty and - textadept.dialog('yesno-msgbox', + textadept.dialog('msgbox', '--title', locale.IO_CLOSE_TITLE, '--text', locale.IO_CLOSE_TEXT, - '--informative-text', locale.IO_CLOSE_MSG, + '--informative-text', + string.format('%s', (buffer.filename or + buffer._type or locale.UNTITLED)), + '--button1', 'gtk-cancel', + '--button2', locale.IO_CLOSE_BUTTON2, '--no-newline') ~= '2' then return false end |