diff options
author | James McCoy <jamessan@jamessan.com> | 2022-05-02 00:15:16 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2022-05-02 08:38:35 -0400 |
commit | 88595fbb212c0b770ed6aa08b09561af608c73e0 (patch) | |
tree | 3d3adb943fee03b7a3970f7fe501559264835791 /test | |
parent | e5f6f20968e546ebabd68c1800e915a0503f44cb (diff) | |
download | rneovim-88595fbb212c0b770ed6aa08b09561af608c73e0.tar.gz rneovim-88595fbb212c0b770ed6aa08b09561af608c73e0.tar.bz2 rneovim-88595fbb212c0b770ed6aa08b09561af608c73e0.zip |
fix(filetype.lua): escape expansion of ~ when used as a pattern
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/lua/filetype_spec.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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', |