glow
glow copied to clipboard
fix: respect all config file provided width values
Describe your changes
This PR aims to address #752 where width values specified in the config file below 80 or above 120 are effectively ignored, including the special value of 0.
To do this, the default value written to the config file is set to 0 to mirror the viper default for width, and the special casing to restrict with width when not user specified has been removed. Users with a pre-existing config file will still maintain the previously set value of 80, and should still see the previous behavior.
Fixes #752
Related issue/discussion: #752
Checklist before requesting a review
- [x] I have read
CONTRIBUTING.md - [x] I have performed a self-review of my code
If this is a feature
- [ ] I have created a discussion
- [ ] A project maintainer has approved this feature request. Link to comment: