diff options
Diffstat (limited to 'src/buffer')
-rw-r--r-- | src/buffer/container.nim | 3 |
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) |