mirror of
https://github.com/denoland/deno.git
synced 2025-01-06 14:26:02 -05:00
fix(runtime/windows): (WinOS) Fix calculation of console size
Fixes #23872.
This commit is contained in:
parent
8db420d552
commit
5c58cb2bf5
1 changed files with 2 additions and 2 deletions
|
@ -352,8 +352,8 @@ fn console_size_from_fd(
|
|||
return Err(Error::last_os_error());
|
||||
}
|
||||
Ok(ConsoleSize {
|
||||
cols: bufinfo.dwSize.X as u32,
|
||||
rows: bufinfo.dwSize.Y as u32,
|
||||
cols: bufinfo.srWindow.Right as u32 - bufinfo.srWindow.Left as u32 + 1,
|
||||
rows: bufinfo.srWindow.Bottom as u32 - bufinfo.srWindow.Top as u32 + 1,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue