From 9e00f1e4f227c5a68998cfdcd1ea19e56e0918bc Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Mon, 14 Oct 2024 15:08:23 -0700 Subject: [PATCH] Resolve PR feedback --- pkg/cmd/gist/list/list.go | 2 +- pkg/cmd/search/code/code.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) }