mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-12 03:37:31 -08:00
fix(engine): restore the use of newline everywhere
This commit is contained in:
parent
72fec1f5f6
commit
dfcccaabe0
|
@ -117,11 +117,6 @@ func (e *Engine) pwd() {
|
||||||
func (e *Engine) getNewline() string {
|
func (e *Engine) getNewline() string {
|
||||||
newline := "\n"
|
newline := "\n"
|
||||||
|
|
||||||
switch e.Env.Shell() {
|
|
||||||
case shell.PWSH, shell.PWSH5:
|
|
||||||
newline = "\r\n"
|
|
||||||
}
|
|
||||||
|
|
||||||
if e.Plain || e.Env.Flags().Debug {
|
if e.Plain || e.Env.Flags().Debug {
|
||||||
return newline
|
return newline
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue