From 12fc3c228a45d3250b48c1320a130c59074f20d4 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sun, 28 Jul 2024 03:42:41 +0200 Subject: xP: reset highlight state once reaching buffer end --- xP/public/xP.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xP') 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) }, } -- cgit v1.2.3-70-g09d2