Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 8283680

Browse files
committed
fix: root directory not correctly complete(#23)
1 parent 0732741 commit 8283680

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/source/path.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ M.triggerFunction = function(_, _, _, manager)
7575
if keyword ~= nil then
7676
local expanded_keyword = vim.fn.glob(keyword)
7777
local home = vim.fn.expand("$HOME")
78-
if expanded_keyword == '/' or string.find(expanded_keyword, home) ~= nil then
78+
if expanded_keyword:sub(1, 1) == '/' or string.find(expanded_keyword, home) ~= nil then
7979
path = expanded_keyword
8080
else
8181
path = vim.fn.expand('%:p:h')

0 commit comments

Comments
 (0)