Skip to content

Commit

Permalink
fix(engine): only use carriage return on PowerShell
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Nov 26, 2024
1 parent e139f5e commit 72fec1f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/prompt/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ func (e *Engine) pwd() {
}

func (e *Engine) getNewline() string {
newline := "\r\n"
newline := "\n"

switch e.Env.Shell() {
case shell.PWSH, shell.PWSH5:
newline = "\r\n"
}

if e.Plain || e.Env.Flags().Debug {
return newline
Expand Down

0 comments on commit 72fec1f

Please sign in to comment.