From d7e233566543d4c83199f5644f90bb116d7070f2 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sat, 25 Dec 2021 15:11:42 +0100 Subject: add some tests (#360) --- lua/nvim-lsp-installer/path.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/nvim-lsp-installer/path.lua') 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 -- cgit v1.2.3-70-g09d2