diff options
Diffstat (limited to 'script-beta/core/completion.lua')
-rw-r--r-- | script-beta/core/completion.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua index 840d4cd7..b466edcd 100644 --- a/script-beta/core/completion.lua +++ b/script-beta/core/completion.lua @@ -208,7 +208,10 @@ local function getSnip(source) local text = files.getText(uri) local lines = files.getLines(uri) if not text then - return nil + goto CONTINUE + end + if vm.isMetaFile(uri) then + goto CONTINUE end local row = guide.positionOf(lines, def.start) local firstRow = lines[row] @@ -216,6 +219,7 @@ local function getSnip(source) local snip = text:sub(firstRow.start, lastRow.finish) return snip end + ::CONTINUE:: end end |