mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
update comment
This commit is contained in:
parent
c09dc098ab
commit
0cb11e07da
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ function M.browse()
|
||||||
local key, value = line:match("^(%S+)%s+(.+)$")
|
local key, value = line:match("^(%S+)%s+(.+)$")
|
||||||
|
|
||||||
if key:lower() == "host" then
|
if key:lower() == "host" then
|
||||||
-- process url before parse next group of host if match we could close file and early return
|
-- Process the URL before parsing the next group of hosts. If there is a match, we can replace the string and break early.
|
||||||
if currentHost ~= "" and currentHost ~= value and url:match(currentHost .. ":") then
|
if currentHost ~= "" and currentHost ~= value and url:match(currentHost .. ":") then
|
||||||
-- If the username is specified, we do not need to replace it; otherwise, replace the username with "git".
|
-- If the username is specified, we do not need to replace it; otherwise, replace the username with "git".
|
||||||
local searchString = hostGroup[currentHost].User and currentHost .. ":" or "git@" .. currentHost .. ":"
|
local searchString = hostGroup[currentHost].User and currentHost .. ":" or "git@" .. currentHost .. ":"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue