From 88595fbb212c0b770ed6aa08b09561af608c73e0 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 2 May 2022 00:15:16 -0400 Subject: fix(filetype.lua): escape expansion of ~ when used as a pattern --- test/functional/lua/filetype_spec.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'test/functional/lua') diff --git a/test/functional/lua/filetype_spec.lua b/test/functional/lua/filetype_spec.lua index 729ebc601b..e83dd2eb24 100644 --- a/test/functional/lua/filetype_spec.lua +++ b/test/functional/lua/filetype_spec.lua @@ -70,6 +70,7 @@ describe('vim.filetype', function() it('works with patterns', function() eq('markdown', exec_lua([[ local root = ... + vim.env.HOME = '/a-funky+home%dir' vim.filetype.add({ pattern = { ['~/blog/.*%.txt'] = 'markdown', -- cgit