which-key.nvim icon indicating copy to clipboard operation
which-key.nvim copied to clipboard

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

Open Spiffyk opened this issue 1 year ago • 0 comments

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.

Spiffyk avatar Apr 24 '23 15:04 Spiffyk