aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/file_io.lua3
-rw-r--r--core/gui.lua3
2 files changed, 4 insertions, 2 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 18b7b919..36417661 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -353,6 +353,7 @@ end)
-- @see recent_files
-- @name open_recent_file
function io.open_recent_file()
- local i = gui.filteredlist(_L['Open'], _L['File'], io.recent_files, true)
+ local i = gui.filteredlist(_L['Open'], _L['File'], io.recent_files, true,
+ NCURSES and { '--width', gui.size[1] - 2 } or '')
if i then io.open_file(io.recent_files[i + 1]) end
end
diff --git a/core/gui.lua b/core/gui.lua
index 778f3539..cb9aa1d9 100644
--- a/core/gui.lua
+++ b/core/gui.lua
@@ -108,7 +108,8 @@ function gui.switch_buffer()
items[#items + 1] = (buffer.dirty and '*' or '')..basename
items[#items + 1] = filename
end
- local i = gui.filteredlist(_L['Switch Buffers'], columns, items, true)
+ local i = gui.filteredlist(_L['Switch Buffers'], columns, items, true,
+ NCURSES and { '--width', gui.size[1] - 2 } or '')
if i then view:goto_buffer(i + 1) end
end