diff options
author | bptato <nincsnevem662@gmail.com> | 2023-01-05 00:57:57 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-01-05 00:57:57 +0100 |
commit | c0ccab9264ed99e75ee42197eed8af7e77e023f5 (patch) | |
tree | d70478a6dfb1e618c19ebf8079469bb52efcdaa3 /src/buffer | |
parent | 0edb5d3230730990d922328822e19833d807a040 (diff) | |
download | chawan-c0ccab9264ed99e75ee42197eed8af7e77e023f5.tar.gz |
Add ask()
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) |