Fixed bug if WindowTop is bigger than 0.

This commit is contained in:
BDisp
2020-12-12 12:59:44 +00:00
parent d06c87493d
commit a3e3e7fb25

View File

@@ -356,7 +356,7 @@ namespace Terminal.Gui {
} else if (foundPoint > 0 && c != 'm' && c != 'M') {
value += c.ToString ();
} else if (c == 'm' || c == 'M') {
point.Y = int.Parse (value) - 1;
point.Y = int.Parse (value) + Console.WindowTop - 1;
if (c == 'M') {
isButtonPressed = true;