mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixes #1934. WindowsDriver crash when the height is less than 1 with the VS Debugger Console. (#1935)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user