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:
Steve Lee authored and Dongbo Wang committed 2017-03-10 16:38:17 -08:00
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