diff --git a/lib/components/term.js b/lib/components/term.js index 714ad203..8bbd4c73 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -124,12 +124,12 @@ export default class Term extends React.PureComponent { this.disposableListeners.push( this.term.addDisposableListener('cursormove', () => { const cursorFrame = { - x: this.term.buffer.x * this.term.renderer.dimensions.actualCellWidth, - y: this.term.buffer.y * this.term.renderer.dimensions.actualCellHeight, - width: this.term.renderer.dimensions.actualCellWidth, - height: this.term.renderer.dimensions.actualCellHeight, - col: this.term.buffer.y, - row: this.term.buffer.x + x: this.term._core.buffer.x * this.term._core.renderer.dimensions.actualCellWidth, + y: this.term._core.buffer.y * this.term._core.renderer.dimensions.actualCellHeight, + width: this.term._core.renderer.dimensions.actualCellWidth, + height: this.term._core.renderer.dimensions.actualCellHeight, + col: this.term._core.buffer.y, + row: this.term._core.buffer.x }; props.onCursorMove(cursorFrame); })