aboutsummaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
Diffstat (limited to 'xP')
-rw-r--r--xP/public/xP.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index 5dd578d..e4f5647 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -344,6 +344,11 @@ rpcEventHandlers.set(Relay.Event.BufferStats, e => {
rpcEventHandlers.set(Relay.Event.BufferRename, e => {
buffers.set(e.new, buffers.get(e.bufferName))
buffers.delete(e.bufferName)
+
+ if (e.bufferName === bufferCurrent)
+ bufferCurrent = e.new
+ if (e.bufferName === bufferLast)
+ bufferLast = e.new
})
rpcEventHandlers.set(Relay.Event.BufferRemove, e => {