mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 21:45:05 +00:00
fix(filetype.lua): escape expansion of ~ when used as a pattern
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user