From 9239b26209a8dfa9bb8620b9003178fb2e6f9357 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sat, 22 Apr 2023 21:33:20 +0200 Subject: [PATCH] fix(xonsh): do not print hyperlink ANSI --- src/ansi/ansi_writer_hyperlink.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ansi/ansi_writer_hyperlink.go b/src/ansi/ansi_writer_hyperlink.go index aa111d40..3846678b 100644 --- a/src/ansi/ansi_writer_hyperlink.go +++ b/src/ansi/ansi_writer_hyperlink.go @@ -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) }