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
|
const dom = event.target
|
||||||
bufferAutoscroll =
|
bufferAutoscroll =
|
||||||
dom.scrollTop + dom.clientHeight + 1 >= dom.scrollHeight
|
dom.scrollTop + dom.clientHeight + 1 >= dom.scrollHeight
|
||||||
|
|
||||||
|
let b = buffers.get(bufferCurrent)
|
||||||
|
if (b !== undefined && b.highlighted && !bufferAutoscroll) {
|
||||||
|
b.highlighted = false
|
||||||
|
m.redraw()
|
||||||
|
}
|
||||||
}}, lines)
|
}}, lines)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue