Skip to content

Commit

Permalink
Resolve PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
heaths committed Oct 14, 2024
1 parent e9d8092 commit 9e00f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/gist/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://pkg.go.dev/regexp/syntax>
`, "`"),
Example: heredoc.Doc(`
# list all secret gists from your user account
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/search/code/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 9e00f1e

Please sign in to comment.