aboutsummaryrefslogtreecommitdiff
path: root/xP/public
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-07-28 03:42:41 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-07-28 03:44:37 +0200
commit12fc3c228a45d3250b48c1320a130c59074f20d4 (patch)
tree086066ad47bd75feddf1de956deea626fd59d121 /xP/public
parent175533a5e9a0892e1648782cc9bf6c7ec8917a38 (diff)
downloadxK-12fc3c228a45d3250b48c1320a130c59074f20d4.tar.gz
xK-12fc3c228a45d3250b48c1320a130c59074f20d4.tar.xz
xK-12fc3c228a45d3250b48c1320a130c59074f20d4.zip
xP: reset highlight state once reaching buffer end
Diffstat (limited to 'xP/public')
-rw-r--r--xP/public/xP.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index 6452038..3646403 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -693,6 +693,12 @@ let Buffer = {
const dom = event.target
bufferAutoscroll =
dom.scrollTop + dom.clientHeight + 1 >= dom.scrollHeight
+
+ let b = buffers.get(bufferCurrent)
+ if (b !== undefined && b.highlighted && !bufferAutoscroll) {
+ b.highlighted = false
+ m.redraw()
+ }
}}, lines)
},
}