aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/glob_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/lua/glob_spec.lua')
-rw-r--r--test/functional/lua/glob_spec.lua11
1 files changed, 3 insertions, 8 deletions
diff --git a/test/functional/lua/glob_spec.lua b/test/functional/lua/glob_spec.lua
index b95d874bb5..6f1e5be501 100644
--- a/test/functional/lua/glob_spec.lua
+++ b/test/functional/lua/glob_spec.lua
@@ -9,14 +9,9 @@ describe('glob', function()
after_each(n.clear)
local match = function(...)
- return exec_lua(
- [[
- local pattern = select(1, ...)
- local str = select(2, ...)
- return require("vim.glob").to_lpeg(pattern):match(str) ~= nil
- ]],
- ...
- )
+ return exec_lua(function(pattern, str)
+ return require('vim.glob').to_lpeg(pattern):match(str) ~= nil
+ end, ...)
end
describe('glob matching', function()