From 0cb11e07da85351b717bc56bd733500bb38caa8f Mon Sep 17 00:00:00 2001 From: arthur Date: Sun, 23 Jun 2024 01:19:16 +0800 Subject: [PATCH] update comment --- lua/lazyvim/util/lazygit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/util/lazygit.lua b/lua/lazyvim/util/lazygit.lua index f6e0abad..49bfc9b3 100644 --- a/lua/lazyvim/util/lazygit.lua +++ b/lua/lazyvim/util/lazygit.lua @@ -211,7 +211,7 @@ function M.browse() local key, value = line:match("^(%S+)%s+(.+)$") 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 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 .. ":"