mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-27 02:51:44 -08:00
fix: only use ansi for newline on Powershell
This commit is contained in:
parent
c24ecae9d5
commit
344277c09b
|
@ -131,11 +131,10 @@ func (r *Renderer) lenWithoutANSI(str string) int {
|
|||
}
|
||||
|
||||
func (r *Renderer) lineBreak() string {
|
||||
switch r.shell {
|
||||
case "bash", "zsh", "nu":
|
||||
return "\n"
|
||||
if r.shell == "pwsh" {
|
||||
return "\x1b[1000C "
|
||||
}
|
||||
return "\x1b[1000C "
|
||||
return "\n"
|
||||
}
|
||||
|
||||
func (r *Renderer) carriageForward() string {
|
||||
|
|
Loading…
Reference in a new issue