mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00:00
fix(runtime/windows): (WinOS) Fix calculation of console size
Fixes #23872.
This commit is contained in:
parent
8db420d552
commit
5c58cb2bf5
@ -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 New Issue
Block a user