Closed PerceptuallyUniform closed 2 years ago
I couldn't reproduce this issue.
(advice-remove #'fit-window-to-buffer :before #'doom-modeline-redisplay)
, please.Recording of this issue attached.
Appending (advice-remove #'fit-window-to-buffer :before #'doom-modeline-redisplay)
to init.el produces a Wrong number of arguments: (2 . 2), 3
error during loading, and the issue persists.
Sorry, try (advice-remove #'fit-window-to-buffer #'doom-modeline-redisplay)
.
It's not a bug, while a workaround. See
https://github.com/seagle0128/doom-modeline/blob/master/doom-modeline-core.el#L804
The workaround works, and resolves the issue, thank you.
The workaround works, and resolves the issue, thank you.
Reminder, removing the workaround will cause other issues as the inline comments.
Thank you for the bug report
doom-mode
related packages.emacs -Q
.Bug description
When using both which-key and doom-modeline, the which-key window opens too large (half the height of the active window) for a split second, before shrinking back to its expected size.
While distracting on its own, it is made worse if the point is on the bottom half of the window, that gets covered by the which-key window, causing the active window to scroll to keep the point visible. In my experiments, setting
doom-modeline-height
to < 19 resolved the issue.I don't know if the root cause lies in doom-modeline or which-key.
Steps to reproduce
Open a text file with enough lines in emacs. With point near the top of the window, press
C-x
to make the which-key window appear. Move the point to 1-2 lines above the top of the which-key window, close the which-key window, then re-open it withC-x
. That should cause it to momentarily cover the point and scroll the active window.Configuration used in testing:
Expected behavior
No different than without doom-modeline - the which-key window opens at its final size immediately, and does not cover half the active window before shrinking.
OS
Linux
Emacs Version
27
Emacs Configurations
Vanilla emacs
Error callstack
No response
Anything else
No response