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
|
||||
case shell.PWSH, shell.PWSH5:
|
||||
if promptType == Transient {
|
||||
// Return the string and empty our buffer
|
||||
// clear the line afterwards to prevent text from being written on the same line
|
||||
// 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:
|
||||
// Return the string and empty our buffer
|
||||
return str
|
||||
|
|
Loading…
Reference in a new issue