Skip to content

Commit

Permalink
fix panics: #36
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoh86 committed Jun 8, 2021
1 parent f080aca commit 71db3f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ func (s *Style) ANSI() aec.ANSI {

// Apply style To string
func (s *Style) Apply(str string) string {
if s == nil {
return str
}

if s.Hide != nil && *s.Hide {
return ""
}
Expand Down

0 comments on commit 71db3f9

Please sign in to comment.