From 89839b69e76b08f58b5cc3d287d8e73f9b70f6fa Mon Sep 17 00:00:00 2001 From: George Fleming Date: Thu, 17 Mar 2016 14:16:12 -0700 Subject: [PATCH] Render multi-line command as a single-line command --- src/Microsoft.PowerShell.Linux.Host/readline.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Microsoft.PowerShell.Linux.Host/readline.cs b/src/Microsoft.PowerShell.Linux.Host/readline.cs index 0a2a77cc52..d8b3935aa0 100644 --- a/src/Microsoft.PowerShell.Linux.Host/readline.cs +++ b/src/Microsoft.PowerShell.Linux.Host/readline.cs @@ -771,6 +771,10 @@ namespace Microsoft.PowerShell.Linux.Host string text = this.buffer.ToString(); + // TODO: Rendering of a multiline command on separate lines. + // For now, just display it as a single-line command. + text = text.Replace(System.Environment.NewLine, " "); + // The PowerShell tokenizer is used to decide how to colorize // the input. Any errors in the input are returned in 'errors', // but we won't be looking at those here.