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

Catch errors when expanding and rendering mode line format strings #973

Merged
merged 1 commit into from May 18, 2022

Conversation

szos
Copy link
Contributor

@szos szos commented May 14, 2022

This patches the function redraw-mode-line to catch errors during the expansion process and during the rendering process. The motivation for this is that I have seen StumpWM users, often newer users, crash StumpWM by using a non-valid mode line format string.

Should an error be caught one of two strings will be displayed in the mode line, telling the user that the mode line could not be expanded/rendered, and displaying the error that was caught.

This commit patches the mode line to display an error message if the mode
line format string cannot be expanded or rendered. Currently, errors in
expansion or rendering can crash StumpWM, this commit addresses that.
@PuercoPop PuercoPop merged commit 45dec0e into stumpwm:master May 18, 2022
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.

None yet

2 participants