From 0ab6f48940d77560a5c1b98c5a16bab0ae3aec08 Mon Sep 17 00:00:00 2001 From: Djordje Ungar Date: Wed, 27 Mar 2019 08:35:04 +0100 Subject: [PATCH] Fixes #3542: x coordinate maps to col, and y coordinate maps to row --- lib/components/term.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/term.js b/lib/components/term.js index afd46c22e7dc..74694c5f7668 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -174,8 +174,8 @@ export default class Term extends React.PureComponent { 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 + col: this.term._core.buffer.x, + row: this.term._core.buffer.y }; props.onCursorMove(cursorFrame); })