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