diff --git a/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs b/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs index 5dd4c30c2..dc1f1bc41 100644 --- a/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs +++ b/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs @@ -684,7 +684,7 @@ private string GetPrompt(CancellationToken cancellationToken) public void WriteWithPrompt(PSCommand command, CancellationToken cancellationToken) { UI.Write(GetPrompt(cancellationToken)); - UI.Write(command.GetInvocationText()); + UI.WriteLine(command.GetInvocationText()); } private string InvokeReadLine(CancellationToken cancellationToken)