1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-05 05:21:26 -08:00

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.
This commit is contained in:
justbur 2016-01-11 09:56:49 -05:00
parent f4a1b4283b
commit 9bb70c8cdd

View file

@ -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 ()