authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-03-12 15:08:48+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-03-12 15:08:48+01:00
logb5a50a26ebac6a08dacf79f5d1db9bdd94ba33a5
tree4a5cdc785994be1f5e108443cc71389b140fa9f9
parent3010bfb08af0b47d801d492e4f2e21a988e8399a

Fix many thinkos

Somehow I forgot to save after copy-pasting some code and changing it.

1 files changed, 3 insertions(+), 2 deletions(-)

lib/std/Progress.zig+3-2
...@@ -214,8 +214,9 @@ fn refreshWithHeldLock(self: *Progress) void {...@@ -214,8 +214,9 @@ fn refreshWithHeldLock(self: *Progress) void {
214 const window_width = @intCast(windows.DWORD, info.srWindow.Right - info.srWindow.Left) + 1;214 const window_width = @intCast(windows.DWORD, info.srWindow.Right - info.srWindow.Left) + 1;
215 // Number of terminal cells to clear, starting from the cursor position215 // Number of terminal cells to clear, starting from the cursor position
216 // and ending at the window bottom right corner.216 // and ending at the window bottom right corner.
217 const fill_chars = window_width * (window_width - @intCast(windows.DWORD, info.dwCursorPosition.Y - info.srWindow.Top)) -217 const fill_chars = window_width * (window_height -
218 @intCast(windows.DWORD, info.dwCursorPosition.Y - info.srWindow.Top);218 @intCast(windows.DWORD, info.dwCursorPosition.Y - info.srWindow.Top)) -
219 @intCast(windows.DWORD, info.dwCursorPosition.X - info.srWindow.Left);
219220
220 var written: windows.DWORD = undefined;221 var written: windows.DWORD = undefined;
221 if (windows.kernel32.FillConsoleOutputAttribute(222 if (windows.kernel32.FillConsoleOutputAttribute(