mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
fix(pwsh): do not clear after valid and error lines
This commit is contained in:
parent
373e2f8961
commit
4bcba545d9
|
@ -110,10 +110,14 @@ func (e *Engine) ExtraPrompt(promptType ExtraPromptType) string {
|
||||||
}
|
}
|
||||||
return str
|
return str
|
||||||
case shell.PWSH, shell.PWSH5:
|
case shell.PWSH, shell.PWSH5:
|
||||||
// Return the string and empty our buffer
|
if promptType == Transient {
|
||||||
// clear the line afterwards to prevent text from being written on the same line
|
// Return the string and empty our buffer
|
||||||
// see https://github.com/JanDeDobbeleer/oh-my-posh/issues/3628
|
// clear the line afterwards to prevent text from being written on the same line
|
||||||
return str + terminal.ClearAfter()
|
// see https://github.com/JanDeDobbeleer/oh-my-posh/issues/3628
|
||||||
|
return str + terminal.ClearAfter()
|
||||||
|
}
|
||||||
|
|
||||||
|
return str
|
||||||
case shell.CMD, shell.BASH, shell.FISH, shell.NU, shell.GENERIC:
|
case shell.CMD, shell.BASH, shell.FISH, shell.NU, shell.GENERIC:
|
||||||
// Return the string and empty our buffer
|
// Return the string and empty our buffer
|
||||||
return str
|
return str
|
||||||
|
|
Loading…
Reference in a new issue