diff options
Diffstat (limited to 'script/core/folding.lua')
-rw-r--r-- | script/core/folding.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/core/folding.lua b/script/core/folding.lua index d089b816..1bbae944 100644 --- a/script/core/folding.lua +++ b/script/core/folding.lua @@ -1,5 +1,6 @@ -local files = require "files" +local files = require "files" local searcher = require "core.searcher" +local util = require 'utility' local Care = { ['function'] = function (source, text, results) @@ -92,6 +93,7 @@ local Care = { end, ['comment.short'] = function (source, text, results, status) local ltext = source.text:lower() + ltext = util.trim(ltext, 'left') if ltext:sub(1, #'region') == 'region' or ltext:sub(1, #'#region') == '#region' then if not status.regions then |