From 9c40d2987adfb246ca42959c5e7be2c1ad2e3ebe Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Fri, 10 Mar 2017 16:38:17 -0800 Subject: [PATCH] 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 --- .../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 dbfe6b3df..e90f13209 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs @@ -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