Skip to content

Instantly share code, notes, and snippets.

@ttdoda
Created August 3, 2015 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttdoda/30c189a63d483beeb207 to your computer and use it in GitHub Desktop.
Save ttdoda/30c189a63d483beeb207 to your computer and use it in GitHub Desktop.
diff --git a/main.c b/main.c
index 9cac333..7c5780c 100644
--- a/main.c
+++ b/main.c
@@ -5561,6 +5561,7 @@ DEFUN(sgrmouse, SGRMOUSE, "SGR 1006 mouse operation")
else
return;
} while (1);
+ if (x>0) x--;
do {
c = getch();
@@ -5574,6 +5575,7 @@ DEFUN(sgrmouse, SGRMOUSE, "SGR 1006 mouse operation")
} else
return;
} while (1);
+ if (y>0) y--;
if (x < 0 || x >= COLS || y < 0 || y > LASTLINE)
return;
@tats
Copy link

tats commented Aug 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment