From c0e012f9910c955937990adb96df910002e1981d Mon Sep 17 00:00:00 2001 From: phanium Date: Tue, 6 Aug 2024 01:48:51 +0800 Subject: [PATCH] fix: no need to `detected_urls_set` many times --- lua/gx/handler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gx/handler.lua b/lua/gx/handler.lua index e443826..d01faf0 100644 --- a/lua/gx/handler.lua +++ b/lua/gx/handler.lua @@ -77,8 +77,8 @@ function M.get_url(mode, line, configured_handlers, handler_options) then if detected_urls_set[url] == nil then detected_urls[#detected_urls + 1] = { ["name"] = handler.name, ["url"] = url } + detected_urls_set[url] = true end - detected_urls_set[url] = true end end