diff options
author | 2012-06-22 15:22:25 -0400 | |
---|---|---|
committer | 2012-06-22 15:22:25 -0400 | |
commit | 73699db214f70901d642866f4233fbc99fa792a6 (patch) | |
tree | 9ee6e9d5bc02f377fadd4c99dd055527097768bb /core/file_io.lua | |
parent | 4bca2f464a111f8561cc69d79b0a202be1da4d48 (diff) | |
download | textadept-73699db214f70901d642866f4233fbc99fa792a6.tar.gz textadept-73699db214f70901d642866f4233fbc99fa792a6.zip |
Resize most filteredlists to fit the ncurses screen.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 3 |
1 files changed, 2 insertions, 1 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 |