Skip to content

Fix crash when keybindings are disabled that normally show in the status bar#5655

Merged
stefanhaller merged 2 commits into
masterfrom
fix-crash-rendering-options-map
May 28, 2026
Merged

Fix crash when keybindings are disabled that normally show in the status bar#5655
stefanhaller merged 2 commits into
masterfrom
fix-crash-rendering-options-map

Conversation

@stefanhaller
Copy link
Copy Markdown
Collaborator

If a keybinding that we want to display in the options bar was set to <disabled> by the user, in pre-0.62 versions we would still display the command, but with no keybinding. This was arguably not very useful before, but now it actually crashes because we would now try to display the first key of the slice of configured keys (crash introduced in 3d18ee8). Fix the crash by not showing those commands at all.

…tatus bar

If a keybinding that we want to display in the options bar was set to <disabled>
by the user, in pre-0.62 versions we would still display the command, but with
no keybinding. This was arguably not very useful before, but now it actually
crashes because we would now try to display the first key of the slice of
configured keys (crash introduced in 3d18ee8). Fix the crash by not showing
those commands at all.
This doesn't make a difference for the behavior, it just looks strange to
include the empty bindings first and then filter them out in the next statement.
@stefanhaller stefanhaller added the bug Something isn't working label May 28, 2026
@stefanhaller stefanhaller enabled auto-merge May 28, 2026 17:29
@stefanhaller stefanhaller merged commit ff8f3d7 into master May 28, 2026
14 checks passed
@stefanhaller stefanhaller deleted the fix-crash-rendering-options-map branch May 28, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant