Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Account for "line-spacing" when calculating rows for side-window-right #333

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion which-key.el
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ width) in lines and characters respectively."
;; height
(if (member which-key-side-window-location '(left right))
;; 1 is a kludge to make sure there is no overlap
(- (frame-height) (window-text-height (minibuffer-window)) 1)
(- (/ (- (frame-inner-height) (window-pixel-height (minibuffer-window))) (default-line-height)) 1)
;; (window-mode-line-height which-key--window))
;; FIXME: change to something like
;; (min which-*-height (calculate-max-height))
Expand Down