From 960aaab57d96e9b8b77222db95e8b120ab0b13b5 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Mon, 5 Oct 2020 17:09:58 -0400 Subject: Increase the width of dialogs that hold filenames in the terminal version. Long filenames are clipped. --- core/file_io.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/file_io.lua') diff --git a/core/file_io.lua b/core/file_io.lua index f10282dd..46cee08f 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -244,7 +244,8 @@ local function close(buffer, force) title = _L['Close without saving?'], text = _L['There are unsaved changes in'], informative_text = filename, icon = 'gtk-dialog-question', button1 = _L['Cancel'], - button2 = _L['Close without saving'] + button2 = _L['Close without saving'], + width = CURSES and #filename > 40 and ui.size[1] - 2 or nil } if button ~= 2 then return nil end -- do not propagate key command end -- cgit v1.2.3