We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39d66a5 commit 342b4bfCopy full SHA for 342b4bf
1 file changed
in/cursor.lua
@@ -22,7 +22,11 @@ local listeners = {}
22
local EMPTY = hash("")
23
24
local function url_to_key(url)
25
- url = url or msg.url()
+ if type(url) == "string" then
26
+ url = msg.url(url)
27
+ else
28
+ url = url or msg.url()
29
+ end
30
return hash_to_hex(url.socket or EMPTY) .. hash_to_hex(url.path or EMPTY) ..hash_to_hex(url.fragment or EMPTY)
31
end
32
0 commit comments