diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-07-28 03:42:41 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-07-28 03:44:37 +0200 |
commit | 12fc3c228a45d3250b48c1320a130c59074f20d4 (patch) | |
tree | 086066ad47bd75feddf1de956deea626fd59d121 | |
parent | 175533a5e9a0892e1648782cc9bf6c7ec8917a38 (diff) | |
download | xK-12fc3c228a45d3250b48c1320a130c59074f20d4.tar.gz xK-12fc3c228a45d3250b48c1320a130c59074f20d4.tar.xz xK-12fc3c228a45d3250b48c1320a130c59074f20d4.zip |
xP: reset highlight state once reaching buffer end
-rw-r--r-- | xP/public/xP.js | 6 |
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) }, } |