mirror of
https://github.com/ziglang/zig.git
synced 2026-01-05 21:13:24 +00:00
Fix many thinkos
Somehow I forgot to save after copy-pasting some code and changing it.
This commit is contained in:
parent
3010bfb08a
commit
b5a50a26eb
@ -214,8 +214,9 @@ fn refreshWithHeldLock(self: *Progress) void {
|
||||
const window_width = @intCast(windows.DWORD, info.srWindow.Right - info.srWindow.Left) + 1;
|
||||
// Number of terminal cells to clear, starting from the cursor position
|
||||
// and ending at the window bottom right corner.
|
||||
const fill_chars = window_width * (window_width - @intCast(windows.DWORD, info.dwCursorPosition.Y - info.srWindow.Top)) -
|
||||
@intCast(windows.DWORD, info.dwCursorPosition.Y - info.srWindow.Top);
|
||||
const fill_chars = window_width * (window_height -
|
||||
@intCast(windows.DWORD, info.dwCursorPosition.Y - info.srWindow.Top)) -
|
||||
@intCast(windows.DWORD, info.dwCursorPosition.X - info.srWindow.Left);
|
||||
|
||||
var written: windows.DWORD = undefined;
|
||||
if (windows.kernel32.FillConsoleOutputAttribute(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user