about summary refs log tree commit diff stats
path: root/src/buffer
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-01-05 00:57:57 +0100
committerbptato <nincsnevem662@gmail.com>2023-01-05 00:57:57 +0100
commitc0ccab9264ed99e75ee42197eed8af7e77e023f5 (patch)
treed70478a6dfb1e618c19ebf8079469bb52efcdaa3 /src/buffer
parent0edb5d3230730990d922328822e19833d807a040 (diff)
downloadchawan-c0ccab9264ed99e75ee42197eed8af7e77e023f5.tar.gz
Add ask()
Diffstat (limited to 'src/buffer')
-rw-r--r--src/buffer/container.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer/container.nim b/src/buffer/container.nim
index 61097186..d5c6becf 100644
--- a/src/buffer/container.nim
+++ b/src/buffer/container.nim
@@ -260,6 +260,9 @@ func getHoverText*(container: Container): string =
     if container.hovertext[t] != "":
       return container.hovertext[t]
 
+func isHoverURL*(container: Container, url: URL): bool =
+  return $url == container.hovertext[HOVER_LINK]
+
 proc triggerEvent(container: Container, event: ContainerEvent) =
   container.events.addLast(event)