diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-03-16 11:43:33 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-03-16 11:43:33 -0400 |
commit | c8e73a92164fa17597985dd4f2d63ec2d91badd8 (patch) | |
tree | efc2518471d2cca1e27d08511d3a9ff7b1b9a0c8 /core/file_io.lua | |
parent | a79590f80c11d9b1aa363d9fd3f96d86bcde74f1 (diff) |
Use a default width for `ui.dialogs.filteredlist` dialogs.
Experience has shown a vast majority of filteredlist dialogs need to be wide.
Use a standard width that needs to be overridden rather than remembered.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index d0c0fb8f..ad9649d0 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -337,8 +337,7 @@ function io.open_recent_file() utf8_list[#utf8_list + 1] = io.recent_files[i]:iconv('UTF-8', _CHARSET) end local button, i = ui.dialogs.filteredlist{ - title = _L['Open File'], columns = _L['Filename'], items = utf8_list, - width = CURSES and ui.size[1] - 2 or nil + title = _L['Open File'], columns = _L['Filename'], items = utf8_list } if button == 1 and i then io.open_file(io.recent_files[i]) end end |