minibuffer-header
minibuffer-header copied to clipboard
header exceed window-width
Thank you for this awesome package!
I think there is a miscalculation (window-width) going on with this package? 😕 Below is a screenshot.

Thanks for the report. Could you try with emacs -q and check if the problem remains?
Does this look correct? This is in emacs -q on Windows 10.

I think the bug is caused by marginalia-mode with the following config,
(setq marginalia-align 'right) ; no bug if it's 'left
Do you know what does it do with right alignment?
Could fonts be causing this? I had a very similar problem on macOS when using Roboto Mono at height 140. Changing it to either 130 or 150 seems to make the problem go away.
Problem might be a miscalculation with fringes an margins. Coudl you try with no fringe and no margin just to be sure (and no line numbers) ?
I get this issue too.
But, if I set minibuffer-header-face's font to Noto Sans, it seems OK.
if I set minibuffer-header-face's font to JetBrainsMono, the minibuffer-header-line exceed window-width, not ok.
(use-package minibuffer-header
:custom-face
(minibuffer-header-face
((t (:overline "#A15ABD"
:family "Noto Sans"
:background "#141414"))))
:config
(minibuffer-header-mode 1)
)
I've made a lot of progress in fringe/margin/text/window alignment with the nano-modeline rewrite. Probably this code could be easily adapted.
Do any of you woudl have time for a PR?