소스 검색

Fixes #1934. WindowsDriver crash when the height is less than 1 with the VS Debugger Console. (#1935)

BDisp 3 년 전
부모
커밋
54d2ecf130
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

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

@@ -771,7 +771,7 @@ namespace Terminal.Gui {
 					w += 3;
 				}
 				var newSize = WinConsole.SetConsoleWindow (
-					(short)Math.Max (w, 16), (short)e.Height);
+					(short)Math.Max (w, 16), (short)Math.Max (e.Height, 1));
 				left = 0;
 				top = 0;
 				cols = newSize.Width;