mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
fix(fs.lua): normalize slash truncation (#23753)
Preserve last slash in windows' root drive directories
This commit is contained in:
@@ -301,5 +301,10 @@ describe('vim.fs', function()
|
||||
return vim.fs.normalize('$XDG_CONFIG_HOME/nvim')
|
||||
]], xdg_config_home))
|
||||
end)
|
||||
if is_os('win') then
|
||||
it('Last slash is not truncated from root drive', function()
|
||||
eq('C:/', exec_lua [[ return vim.fs.normalize('C:/') ]])
|
||||
end)
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user