diff options
author | 2014-11-23 16:54:24 -0500 | |
---|---|---|
committer | 2014-11-23 16:54:24 -0500 | |
commit | 1e3a6f5ead9e9638a511ca9f8657991053d47407 (patch) | |
tree | 6f9ff2d874e275a8f8c6eff2c6e3e2041f9d096e /core | |
parent | 8854c395d7f7b08fb18d2e5a961a815459eff050 (diff) | |
download | textadept-1e3a6f5ead9e9638a511ca9f8657991053d47407.tar.gz textadept-1e3a6f5ead9e9638a511ca9f8657991053d47407.zip |
File dialogs in the terminal should span the entire view; core/file_io.lua
Diffstat (limited to 'core')
-rw-r--r-- | core/file_io.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index e1660161..49e99c00 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -113,7 +113,8 @@ function io.open_file(filenames) filenames = filenames or ui.dialogs.fileselect{ title = _L['Open'], select_multiple = true, with_directory = (buffer.filename or ''):match('^.+[/\\]') or - lfs.currentdir() + lfs.currentdir(), + width = CURSES and ui.size[1] - 2 or nil } if not filenames then return end for i = 1, #filenames do @@ -238,7 +239,8 @@ function io.save_file_as(filename) local dir, name = (buffer.filename or ''):match('^(.-[/\\]?)([^/\\]*)$') filename = filename or ui.dialogs.filesave{ title = _L['Save'], with_directory = dir, - with_file = name:iconv('UTF-8', _CHARSET) + with_file = name:iconv('UTF-8', _CHARSET), + width = CURSES and ui.size[1] - 2 or nil } if not filename then return end buffer.filename = filename |