Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly merge configured inkpen icon map #17

Merged
merged 1 commit into from
Sep 25, 2020

Conversation

svengreb
Copy link
Owner

Resolves #16

Before the `inkpen.SetIcons(map[nib.Verbosity]Icon)` method has
overwritten the `nib.Verbosity` entries instead of merging the
`ColorFunc` and `Value` fields causing unexpected behavior like
uncolored output or missing icons. This has been changed to check for
the zero value of the fields and merge them with the already configured
struct.

GH-16
@svengreb svengreb added this to the 0.1.0 milestone Sep 25, 2020
@svengreb svengreb self-assigned this Sep 25, 2020
@svengreb svengreb merged commit 17c8d6d into main Sep 25, 2020
@svengreb svengreb deleted the improvement/gh-16-properly-merge-inkpen-icon-map branch September 25, 2020 19:48
@svengreb svengreb removed their assignment Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Properly merge configured inkpen icon map
1 participant