Fix onCursorMove Term handler (#3330)

Fixes #3317
This commit is contained in:
CHaBou 2018-12-15 22:30:58 +01:00
parent a7cb3f25b8
commit 7db24a9c78

View file

@ -124,12 +124,12 @@ export default class Term extends React.PureComponent {
this.disposableListeners.push( this.disposableListeners.push(
this.term.addDisposableListener('cursormove', () => { this.term.addDisposableListener('cursormove', () => {
const cursorFrame = { const cursorFrame = {
x: this.term.buffer.x * this.term.renderer.dimensions.actualCellWidth, x: this.term._core.buffer.x * this.term._core.renderer.dimensions.actualCellWidth,
y: this.term.buffer.y * this.term.renderer.dimensions.actualCellHeight, y: this.term._core.buffer.y * this.term._core.renderer.dimensions.actualCellHeight,
width: this.term.renderer.dimensions.actualCellWidth, width: this.term._core.renderer.dimensions.actualCellWidth,
height: this.term.renderer.dimensions.actualCellHeight, height: this.term._core.renderer.dimensions.actualCellHeight,
col: this.term.buffer.y, col: this.term._core.buffer.y,
row: this.term.buffer.x row: this.term._core.buffer.x
}; };
props.onCursorMove(cursorFrame); props.onCursorMove(cursorFrame);
}) })