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.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 14637891..e4e08d07 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -428,6 +428,7 @@ io.snapopen_filters = {}
-- @name snapopen
function io.snapopen(paths, filter, exclude_FILTER, opts)
if not paths then paths = io.get_project_root() end
+ if not paths then return end
if type(paths) == 'string' then
if not filter then
filter = io.snapopen_filters[paths]