mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
6bfae958c4
commit
19020c10bb
|
@ -342,7 +342,7 @@ func (w *Writer) Write(background, foreground, text string) {
|
||||||
// reset colors
|
// reset colors
|
||||||
w.writeEscapedAnsiString(resetStyle.End)
|
w.writeEscapedAnsiString(resetStyle.End)
|
||||||
|
|
||||||
// reset current
|
// pop last color from the stack
|
||||||
w.current.Pop()
|
w.current.Pop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -487,6 +487,7 @@ func (w *Writer) endColorOverride(position int) int {
|
||||||
|
|
||||||
// do not restore colors at the end of the string, we print it anyways
|
// do not restore colors at the end of the string, we print it anyways
|
||||||
if position == len(w.runes)-1 {
|
if position == len(w.runes)-1 {
|
||||||
|
w.current.Pop()
|
||||||
return position
|
return position
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue