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

Allow specifying 0 padding for mode-line, header-line, etc. #7

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

Sorixelle
Copy link
Contributor

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:

Error (use-package): spacious-padding/:config: Invalid face box: :line-width, 0, :color, "#24273a", :style, nil

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).

@protesilaos protesilaos merged commit ea2175b into protesilaos:main Mar 11, 2024
@protesilaos
Copy link
Owner

Merged. Thank you!

protesilaos added a commit that referenced this pull request Mar 11, 2024
The change was done in pull request 7:
<#7>.
@Sorixelle Sorixelle deleted the allow-zero-padding branch March 11, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants