Merge pull request #399 from bottleofwater/patch-1

Don't apply the 32 delta when in sgr mode - fix #394
This commit is contained in:
Paris Kasidiaris
2016-12-09 10:12:42 +00:00
committed by GitHub
+1 -1
View File
@@ -785,7 +785,7 @@ Terminal.prototype.bindMouse = function() {
pos.x -= 32;
pos.y -= 32;
self.send('\x1b[<'
+ ((button & 3) === 3 ? button & ~3 : button)
+ (((button & 3) === 3 ? button & ~3 : button) - 32)
+ ';'
+ pos.x
+ ';'