mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
![github-actions[bot]](/assets/img/avatar_default.png)
fix(fs): make `normalize()` work with '/' path
Problem: Current implementation of "remove trailing /" doesn't
account for the case of literal '/' as path.
Solution: Remove trailing / only if it preceded by something else.
(cherry picked from commit 80ff66118a
)
Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>