branch: externals/frog-menu
commit 9ea2c2400d09ff4662a2386e22a980dd59a3f8d2
Author: Clemens Radermacher <[email protected]>
Commit: Clemens Radermacher <[email protected]>
Change default grid format function to adjust width based on type
---
frog-menu.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/frog-menu.el b/frog-menu.el
index f9c5a04..cc8f7ab 100644
--- a/frog-menu.el
+++ b/frog-menu.el
@@ -170,7 +170,11 @@ exits through an error."
:type 'function)
(defcustom frog-menu-grid-width-function
- (lambda () (/ (frame-width) 2))
+ (lambda () (cond ((eq frog-menu-type 'avy-posframe)
+ (/ (frame-width) 2))
+ ((eq frog-menu-type 'avy-side-window)
+ (frame-width))
+ (t (frame-width))))
"Returns the width that should be used for menu grid.
Used by `frog-menu-grid-format'."