mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
fix(runtime): respect 'fileignorecase' when sourcing (#24344)
This commit is contained in:
@@ -15,6 +15,7 @@ local mkdir = helpers.mkdir
|
||||
|
||||
cimport('string.h')
|
||||
local cimp = cimport('./src/nvim/os/os.h', './src/nvim/path.h')
|
||||
local options = cimport('./src/nvim/option_defs.h')
|
||||
|
||||
local length = 0
|
||||
local buffer = nil
|
||||
@@ -636,6 +637,15 @@ describe('path.c', function()
|
||||
eq(false, path_with_extension('/some/path/file.vim', 'lua'))
|
||||
eq(false, path_with_extension('/some/path/file', 'lua'))
|
||||
end)
|
||||
|
||||
itp("respects 'fileignorecase' option", function()
|
||||
options.p_fic = false
|
||||
eq(false, path_with_extension('/some/path/file.VIM', 'vim'))
|
||||
eq(false, path_with_extension('/some/path/file.LUA', 'lua'))
|
||||
options.p_fic = true
|
||||
eq(true, path_with_extension('/some/path/file.VIM', 'vim'))
|
||||
eq(true, path_with_extension('/some/path/file.LUA', 'lua'))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('path_with_url', function()
|
||||
|
||||
Reference in New Issue
Block a user