summaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-10 15:48:16 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-10 17:05:39 +0200
commit5f02dddd1103c78677a07b02ec7b4b9594fcc36d (patch)
tree78b50c428479d97599204106b19d986f373c1324 /xP
parent6f4a3f46577e9e5dc8b352c17021ca90b1f15d33 (diff)
downloadxK-5f02dddd1103c78677a07b02ec7b4b9594fcc36d.tar.gz
xK-5f02dddd1103c78677a07b02ec7b4b9594fcc36d.tar.xz
xK-5f02dddd1103c78677a07b02ec7b4b9594fcc36d.zip
xP: advance unread marker when the log is visible
Diffstat (limited to 'xP')
-rw-r--r--xP/public/xP.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index 48b2aef..91a7f75 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -221,7 +221,7 @@ rpc.addEventListener('BufferLine', event => {
return
}
- let visible = !document.hidden &&
+ let visible = !document.hidden && bufferLog === undefined &&
(e.bufferName == bufferCurrent || e.leakToActive)
b.lines.push({...line})
if (!(visible || e.leakToActive) ||