hercules icon indicating copy to clipboard operation
hercules copied to clipboard

Fix flatten which-key--update advice for toggle functions.

Open jeff-phil opened this issue 4 months ago • 0 comments

Pass flatten parameter to hercules-hide in order to remove advice for which-key--update when flattened. Otherwise, which-key no longer pops-up after certain events.

For example, using the code from top of README for macrostep-mode being the toggle-funs works great.

Except if hit q in macrostep-mode, the map is toggled off when mode is quit. Then which-key no longer works, due to the override advice for which-key--update not being removed. By passing flatten param from hercules toggle, the hercules hide function removes advice.

jeff-phil avatar Feb 20 '24 16:02 jeff-phil