| ... | ... | @@ -214,8 +214,9 @@ fn refreshWithHeldLock(self: *Progress) void { |
| 214 | 214 | const window_width = @intCast(windows.DWORD, info.srWindow.Right - info.srWindow.Left) + 1; |
| 215 | 215 | // Number of terminal cells to clear, starting from the cursor position |
| 216 | 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)) - |
| 218 | | @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)) - |
| 219 | @intCast(windows.DWORD, info.dwCursorPosition.X - info.srWindow.Left); |
| 219 | 220 | |
| 220 | 221 | var written: windows.DWORD = undefined; |
| 221 | 222 | if (windows.kernel32.FillConsoleOutputAttribute( |