From 8ddd89c5b783782188818199c8cb5632f33274c8 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Wed, 8 Mar 2017 13:42:54 -0800 Subject: [PATCH] progress bar was incorrectly setting the original x position which causes the progress to slowly move to the right in certain cases addresses #3202 --- .../host/msh/ConsoleHostRawUserInterface.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs index dbfe6b3df6f..e90f132094c 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs @@ -1805,14 +1805,11 @@ public override void SetBufferContents(Coordinates origin, //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