From f6501aeb5195d2e3c22266a612ee643dfa0b69fd Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Mon, 18 Jan 2021 11:16:31 +0100 Subject: [PATCH] fix: multiline prompt rendering resolves #354 --- src/init/omp.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/init/omp.ps1 b/src/init/omp.ps1 index be9a136f..b6444997 100644 --- a/src/init/omp.ps1 +++ b/src/init/omp.ps1 @@ -47,7 +47,8 @@ function global:Set-PoshGitStatus { $standardOut = @(&$omp "--config=$config" "--error=$errorCode" "--pwd=$cleanPWD" "--pswd=$cleanPSWD" "--execution-time=$executionTime") # Restore initial encoding [Console]::OutputEncoding = $originalOutputEncoding - $standardOut + # the ouput can be multiline, joining these ensures proper rendering by adding line breaks with `n + $standardOut -join "`n" Set-PoshGitStatus $global:LASTEXITCODE = $realLASTEXITCODE #remove temp variables