From c0ccab9264ed99e75ee42197eed8af7e77e023f5 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 5 Jan 2023 00:57:57 +0100 Subject: Add ask() --- src/buffer/container.nim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/buffer') 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) -- cgit 1.4.1-2-gfad0