about summary refs log tree commit diff stats
path: root/src/buffer
diff options
context:
space:
mode:
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)