aboutsummaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
Diffstat (limited to 'xP')
-rw-r--r--xP/public/xP.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index 11b4b69..64fa542 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -465,6 +465,14 @@ let BufferList = {
// The role makes it selectable in VIM-like browser extensions.
return m('.item[role=tab]', {
onclick: event => bufferActivate(name),
+ onauxclick: event => {
+ if (event.button == 1)
+ rpc.send({
+ command: 'BufferInput',
+ bufferName: name,
+ text: '/buffer close',
+ })
+ },
class: classes.join(' '),
}, displayName)
})