mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 13:57:26 -08:00
fix(xonsh): do not print hyperlink ANSI
This commit is contained in:
parent
a5274b7ee0
commit
9239b26209
|
@ -71,8 +71,8 @@ func (w *Writer) replaceHyperlink(text string) string {
|
||||||
|
|
||||||
linkText := results["TEXT"]
|
linkText := results["TEXT"]
|
||||||
|
|
||||||
// this isn't supported for elvish
|
// this isn't supported for elvish and xonsh
|
||||||
if w.shell == shell.ELVISH {
|
if w.shell == shell.ELVISH || w.shell == shell.XONSH {
|
||||||
return strings.Replace(text, results["ALL"], linkText, 1)
|
return strings.Replace(text, results["ALL"], linkText, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue