Currently, attempting to set any key of spacious-padding-widths that uses spacious-padding-set-face-box-padding (eg. :mode-line-width, :header-line-width) in box width calculations to 0 results in an error similar to the following:
This is because 0 is an invalid value for :line-width in a face's :box. This PR adds a check to see if the specified padding width is 0 before adding the box, and only adds the box if the width is not 0 (if the specified width is 0, then the box is unnecessary, since no padding needs to be added).
Currently, attempting to set any key of
spacious-padding-widths
that usesspacious-padding-set-face-box-padding
(eg.:mode-line-width
,:header-line-width
) in box width calculations to 0 results in an error similar to the following:This is because 0 is an invalid value for
:line-width
in a face's:box
. This PR adds a check to see if the specified padding width is 0 before adding the box, and only adds the box if the width is not 0 (if the specified width is 0, then the box is unnecessary, since no padding needs to be added).