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.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 2a1385bc..3625e46d 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -162,7 +162,7 @@ function open_file(utf8_filenames)
if file == utf8_filename then table.remove(recent_files, i) break end
end
table.insert(recent_files, 1, utf8_filename)
- lfs.chdir(utf8_filename:iconv('UTF-8', _CHARSET):match('.+[/\\]'))
+ lfs.chdir(utf8_filename:iconv('UTF-8', _CHARSET):match('.+[/\\]') or '.')
end
end