aboutsummaryrefslogtreecommitdiff
path: root/core/file_io.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/file_io.lua')
-rw-r--r--core/file_io.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 8c861bd5..af84390e 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -112,7 +112,8 @@ function io.open_file(filenames)
if type(filenames) == 'string' then filenames = {filenames} end
filenames = filenames or ui.dialogs.fileselect{
title = _L['Open'], select_multiple = true,
- with_directory = (buffer.filename or ''):match('^.+[/\\]')
+ with_directory = (buffer.filename or ''):match('^.+[/\\]') or
+ lfs.currentdir()..'/'
}
if not filenames then return end
for i = 1, #filenames do