Skip to content

Commit

Permalink
🐛 Handle configuration with empty focus
Browse files Browse the repository at this point in the history
An empty focus field in the configuration was not being mapped to the
unset focus enum.
  • Loading branch information
mikelorant committed Feb 2, 2023
1 parent fbed560 commit 39847d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/config/visuals.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func (c *Colour) MarshalYAML() (interface{}, error) {

func ParseFocus(str string) Focus {
focus := map[string]Focus{
"": FocusUnset,
"author": FocusAuthor,
"emoji": FocusEmoji,
"summary": FocusSummary,
Expand Down

0 comments on commit 39847d8

Please sign in to comment.