From 2ab92edacb4ddff0eff15881e829257e34ab91a0 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Fri, 30 Aug 2019 19:06:28 +0200 Subject: [PATCH] Fix the coordinates being out by (1,1) for urxvt mouse reporing This fixes the mouse support in lazydocker. --- extraterm/src/render_process/emulator/Term.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extraterm/src/render_process/emulator/Term.ts b/extraterm/src/render_process/emulator/Term.ts index 1e76b8bef..c191de814 100644 --- a/extraterm/src/render_process/emulator/Term.ts +++ b/extraterm/src/render_process/emulator/Term.ts @@ -674,8 +674,8 @@ export class Emulator implements EmulatorApi { if (this.urxvtMouse) { this.log("sendEvent(): urxvtMouse"); - const x = pos.x + 1; - const y = pos.y + 1; + const x = pos.x; + const y = pos.y; this.send('\x1b[' + (button+32) + ';' + x + ';' + y + 'M'); return; }