From 9bb70c8cdd43f0cd76871fddc4dd3ee1bccd3897 Mon Sep 17 00:00:00 2001 From: justbur Date: Mon, 11 Jan 2016 09:56:49 -0500 Subject: [PATCH] Fix problem with side-window dimension calculation The fringes were not being included in version 24. This makes the calculation consistent with the left/right side-window calculation and fixes #97. --- which-key.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index a952a9831dc..c5ce0ff506a 100644 --- a/which-key.el +++ b/which-key.el @@ -1019,7 +1019,8 @@ width) in lines and characters respectively." (- (if (member which-key-side-window-location '(left right)) (which-key--total-width-to-text (which-key--width-or-percentage-to-width which-key-side-window-max-width)) - (frame-width)) + (which-key--total-width-to-text (which-key--width-or-percentage-to-width + 1.0))) which-key-unicode-correction)))) (defun which-key--frame-max-dimensions ()