From 6fc24376a2168f2f1651dd4d8bd8e8a685e3419c Mon Sep 17 00:00:00 2001 From: CHaBou Date: Sat, 15 Dec 2018 22:30:58 +0100 Subject: [PATCH] Fix onCursorMove Term handler (#3330) Fixes #3317 --- lib/components/term.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); })