diff options
| author | William Boman <william@redwill.se> | 2021-12-25 15:11:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-25 15:11:42 +0100 |
| commit | d7e233566543d4c83199f5644f90bb116d7070f2 (patch) | |
| tree | ecfcb6e5abb937ee976eed6daac1bf2ab3bac51d /lua/nvim-lsp-installer/path.lua | |
| parent | fix: dont pass nil opts (diff) | |
| download | mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar.gz mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar.bz2 mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar.lz mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar.xz mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar.zst mason-d7e233566543d4c83199f5644f90bb116d7070f2.zip | |
add some tests (#360)
Diffstat (limited to 'lua/nvim-lsp-installer/path.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/path.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/path.lua b/lua/nvim-lsp-installer/path.lua index ed906954..533be48d 100644 --- a/lua/nvim-lsp-installer/path.lua +++ b/lua/nvim-lsp-installer/path.lua @@ -39,7 +39,7 @@ function M.realpath(relpath, depth) end function M.is_subdirectory(root_path, path) - return path:sub(1, #root_path) == root_path + return root_path == path or path:sub(1, #root_path + 1) == root_path .. sep end return M |
