fix(xonsh): do not print hyperlink ANSI

This commit is contained in:
Jan De Dobbeleer 2023-04-22 21:33:20 +02:00 committed by Jan De Dobbeleer
parent a5274b7ee0
commit 9239b26209

View file

@ -71,8 +71,8 @@ func (w *Writer) replaceHyperlink(text string) string {
linkText := results["TEXT"]
// this isn't supported for elvish
if w.shell == shell.ELVISH {
// this isn't supported for elvish and xonsh
if w.shell == shell.ELVISH || w.shell == shell.XONSH {
return strings.Replace(text, results["ALL"], linkText, 1)
}