mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Fix drifting of progress bar on Unix (#3289)
The progress bar was incorrectly setting the original x position which causes the progress to slowly move to the right in certain cases
This commit is contained in:
1 parent
c872ae705b
commit
9c40d2987a
1 file changed
+1
-4
@@ -1805,14 +1805,11 @@ namespace Microsoft.PowerShell
|
||||
//if x is exceeding buffer width, reset to the next line
|
||||
if (origin.X >= BufferSize.Width)
|
||||
{
|
||||
origin.X = 1;
|
||||
origin.X = 0;
|
||||
}
|
||||
|
||||
//write the character from contents
|
||||
Console.Out.Write(charitem.Character);
|
||||
|
||||
//advance the character one position
|
||||
origin.X++;
|
||||
}
|
||||
|
||||
//reset the cursor to the original position
|
||||
|
||||
Reference in new issue
Block a user