aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/ui.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-05 17:09:58 -0400
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-05 17:09:58 -0400
commit960aaab57d96e9b8b77222db95e8b120ab0b13b5 (patch)
tree0a296793755c21d9fd1bd4354059453ee1fd9dd9 /core/ui.lua
parent9952db760ae205d25de900349ac0fc6ae33b7be9 (diff)
Increase the width of dialogs that hold filenames in the terminal version.
Long filenames are clipped.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ui.lua b/core/ui.lua
index e40bf2a9..343b4510 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -434,7 +434,8 @@ events_connect(events.QUIT, function()
text = _L['The following buffers are unsaved:'],
informative_text = table.concat(utf8_list, '\n'),
icon = 'gtk-dialog-question', button1 = _L['Cancel'],
- button2 = _L['Quit without saving']
+ button2 = _L['Quit without saving'],
+ width = CURSES and ui.size[1] - 2 or nil
}
if button ~= 2 then return true end -- prevent quit
end)