diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-03-11 20:42:01 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-03-11 20:42:01 -0400 |
commit | 0dfec8e9c0689975cc20217b01fde1be09cf243a (patch) | |
tree | 90a64fc4265b7e2d0369dd8d1531ba0ec67300fc /core/file_io.lua | |
parent | 84fd28ad486d4d16e437e8d8eae7d8855fd23ccd (diff) |
More code cleanup, refactoring, and formatting.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index 88db6907..aca5af2b 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -99,8 +99,8 @@ function io.open_file(filenames, encodings) if not assert_type(filenames, 'string/table/nil', 1) then filenames = ui.dialogs.fileselect{ title = _L['Open File'], select_multiple = true, - with_directory = - (buffer.filename or ''):match('^.+[/\\]') or lfs.currentdir(), + with_directory = (buffer.filename or ''):match('^.+[/\\]') or + lfs.currentdir(), width = CURSES and ui.size[1] - 2 or nil } if not filenames then return end |