diff --git a/pkg/cmd/gist/list/list.go b/pkg/cmd/gist/list/list.go index bb5b7089c..b1e76e52e 100644 --- a/pkg/cmd/gist/list/list.go +++ b/pkg/cmd/gist/list/list.go @@ -52,7 +52,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman this will be slower and increase the rate limit used. Instead of printing a table, code will be printed with highlights. - For supported regular expression syntax, see https://pkg.go.dev/regexp/syntax + For supported regular expression syntax, see `, "`"), Example: heredoc.Doc(` # list all secret gists from your user account diff --git a/pkg/cmd/search/code/code.go b/pkg/cmd/search/code/code.go index 63633cc53..761d2602c 100644 --- a/pkg/cmd/search/code/code.go +++ b/pkg/cmd/search/code/code.go @@ -188,10 +188,10 @@ func formatMatch(t string, matches []search.Match, io *iostreams.IOStreams) []st continue } if _, ok := startIndices[i]; ok { - b.WriteString(cs.HighlightStart()) // black text on yellow background + b.WriteString(cs.HighlightStart()) found = true } else if _, ok := endIndices[i]; ok { - b.WriteString(cs.Reset()) // color reset + b.WriteString(cs.Reset()) } b.WriteRune(c) }