Browse Source

Fixed bug if WindowTop is bigger than 0.

BDisp 4 years ago
parent
commit
a3e3e7fb25
1 changed files with 1 additions and 1 deletions
  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;