diff options
author | bptato <nincsnevem662@gmail.com> | 2024-11-07 16:34:49 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-11-07 16:34:49 +0100 |
commit | 44faa6c9115a89e64c9e6117e6f3f80b1ca3f093 (patch) | |
tree | a69164ed0fe697b8f36a830e4a8a809e700f9684 /src/local | |
parent | e03c9a450b20c65b094348056f65b891fb95b3f4 (diff) | |
download | chawan-44faa6c9115a89e64c9e6117e6f3f80b1ca3f093.tar.gz |
url: fix compilation on Nim 1.6.14
it handles side effects differently
Diffstat (limited to 'src/local')
-rw-r--r-- | src/local/container.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/container.nim b/src/local/container.nim index 7ec85265..a4138634 100644 --- a/src/local/container.nim +++ b/src/local/container.nim @@ -479,7 +479,7 @@ func getHoverText*(container: Container): string = return container.hoverText[t] "" -func isHoverURL*(container: Container; url: URL): bool = +proc isHoverURL*(container: Container; url: URL): bool = let hoverurl = parseURL(container.hoverText[htLink]) return hoverurl.isSome and url.host == hoverurl.get.host |