Fix onCursorMove Term handler (#3330)

Fixes #3317
This commit is contained in:
CHaBou 2018-12-15 22:30:58 +01:00 committed by GitHub
parent 5f56514aa2
commit 6fc24376a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}) })