Explorar o código

Fixed bug if WindowTop is bigger than 0.

BDisp %!s(int64=4) %!d(string=hai) anos
pai
achega
a3e3e7fb25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Terminal.Gui/ConsoleDrivers/NetDriver.cs

+ 1 - 1
Terminal.Gui/ConsoleDrivers/NetDriver.cs

@@ -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;