mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
isWinPlatform was written twice.
This commit is contained in:
@@ -191,13 +191,11 @@ namespace Terminal.Gui {
|
||||
break;
|
||||
case HeightSize.BufferHeight:
|
||||
if (isWinPlatform && Console.WindowHeight > 0) {
|
||||
if (isWinPlatform) {
|
||||
// Can raise an exception while is still resizing.
|
||||
try {
|
||||
Console.WindowTop = Math.Max (Math.Min (top, Console.BufferHeight - Console.WindowHeight), 0);
|
||||
} catch (Exception) {
|
||||
return;
|
||||
}
|
||||
// Can raise an exception while is still resizing.
|
||||
try {
|
||||
Console.WindowTop = Math.Max (Math.Min (top, Console.BufferHeight - Console.WindowHeight), 0);
|
||||
} catch (Exception) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
Console.Out.Write ($"\x1b[{top};{Console.WindowLeft}" +
|
||||
|
||||
Reference in New Issue
Block a user