folke / which-key.nvim

💥 Create key bindings that stick. WhichKey helps you remember your Neovim keymaps, by showing available keybindings in a popup as you type.
Apache License 2.0
5.38k stars 177 forks source link

fix(view): fix error when horizontal margins larger than total width #445

Closed Spiffyk closed 3 months ago

Spiffyk commented 1 year ago

This makes it so that when the horizontal margins sum up to a higher value than the total width of NeoVim, they get set to zero. Previously, the plugin would crash because the resulting width would be negative, which is not allowed for popups.

github-actions[bot] commented 4 months ago

This PR is stale because it has been open 60 days with no activity.

folke commented 3 months ago

fixed in v3