xP: reset highlight state once reaching buffer end
This commit is contained in:
parent
175533a5e9
commit
12fc3c228a
@ -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)
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user