diff options
author | 2015-10-17 09:39:16 -0400 | |
---|---|---|
committer | 2015-10-17 09:39:16 -0400 | |
commit | 9e946e02a87b5880e4977f7804f5498e46fe92f4 (patch) | |
tree | cbf63e89e836385f89a0b0d898173a5101344e53 /core | |
parent | e289fa306ade598c1af4e4d294cde943578e541e (diff) | |
download | textadept-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.lua | 1 |
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] |