aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-10-17 09:39:16 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-10-17 09:39:16 -0400
commit9e946e02a87b5880e4977f7804f5498e46fe92f4 (patch)
treecbf63e89e836385f89a0b0d898173a5101344e53 /core
parente289fa306ade598c1af4e4d294cde943578e541e (diff)
downloadtextadept-9e946e02a87b5880e4977f7804f5498e46fe92f4.tar.gz
textadept-9e946e02a87b5880e4977f7804f5498e46fe92f4.zip
Do not error when trying to snapopen a non-existent project; core/file_io.lua
Diffstat (limited to 'core')
-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]