mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 10:26:42 +10:00
fix(fs.lua): normalize slash truncation
Preserve last slash in windows' root drive directories
(cherry picked from commit 886996ff74)
This commit is contained in:
committed by
github-actions[bot]
parent
b0abe426d6
commit
c0c6294123
@@ -290,5 +290,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