Skip to content

Commit

Permalink
Fix the coordinates being out by (1,1) for urxvt mouse reporing
Browse files Browse the repository at this point in the history
This fixes the mouse support in lazydocker.
  • Loading branch information
sedwards2009 committed Aug 30, 2019
1 parent 4892a52 commit 2ab92ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extraterm/src/render_process/emulator/Term.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2ab92ed

Please sign in to comment.