diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-11 13:24:11 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-11 13:24:11 +0100 |
commit | 76fb59b1f1e02632bdaaf337bb7c882b4d5e9b69 (patch) | |
tree | 986a9b436d15365533205760d0514138aa9a77f2 /src/local/pager.nim | |
parent | dbd5052d8f704d46d3664dc4aa8fb79dd2cea664 (diff) | |
download | chawan-76fb59b1f1e02632bdaaf337bb7c882b4d5e9b69.tar.gz |
client: bind middle button to discardBuffer, use button5/6 as scroll
middle button to close is from w3m btn5/6 is normally a horizontal scroll wheel, so scrollLeft/Right makes more sense than prev/next
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r-- | src/local/pager.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index 56ecd608..a9d06567 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -586,7 +586,7 @@ proc deleteContainer(pager: Pager, container: Container) = pager.unreg.add((container.process, container.iface.stream)) pager.forkserver.removeChild(container.process) -proc discardBuffer(pager: Pager, container = none(Container)) {.jsfunc.} = +proc discardBuffer*(pager: Pager, container = none(Container)) {.jsfunc.} = let c = container.get(pager.container) if c == nil or c.parent == nil and c.children.len == 0: pager.alert("Cannot discard last buffer!") |