diff options
| author | crupest <crupest@outlook.com> | 2023-10-31 20:40:51 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2023-10-31 20:40:51 +0800 | 
| commit | 42e3bafb8383e12eba9bdafb98a14e83dbfe86bb (patch) | |
| tree | 3e248acd87d3d639d62d5b5e22c0ad93a961d595 /configs | |
| parent | 78c906b053d233e19d0b4ba005ab6836c7bb84b3 (diff) | |
| download | crupest-42e3bafb8383e12eba9bdafb98a14e83dbfe86bb.tar.gz crupest-42e3bafb8383e12eba9bdafb98a14e83dbfe86bb.tar.bz2 crupest-42e3bafb8383e12eba9bdafb98a14e83dbfe86bb.zip  | |
Nvim config: Fix walk up bug for /.
Diffstat (limited to 'configs')
| -rw-r--r-- | configs/nvim/lua/crupest/system/fs.lua | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/nvim/lua/crupest/system/fs.lua b/configs/nvim/lua/crupest/system/fs.lua index 2f489c3..d34c2f6 100644 --- a/configs/nvim/lua/crupest/system/fs.lua +++ b/configs/nvim/lua/crupest/system/fs.lua @@ -1,4 +1,5 @@  local function clean_path(path) +    if path == "/" then return path end      path = string.gsub(path, "[/\\]+", "/")      if string.sub(path, string.len(path)) == '/' then          path = string.sub(path, 1, string.len(path) - 1)  | 
