branch: externals/posframe commit ca2ad3ae10b9656055e4c8f9a18fcd202248c3b8 Author: Aaron Jensen <aaronjen...@gmail.com> Commit: Aaron Jensen <aaronjen...@gmail.com>
Fix frame fit when there are leading or trailing spaces See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45748 This impacts company-posframe when displaying a single result. --- posframe.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posframe.el b/posframe.el index 37254f2..7288fa3 100644 --- a/posframe.el +++ b/posframe.el @@ -720,8 +720,8 @@ will be removed." (defun posframe--fit-frame-to-buffer (posframe height min-height width min-width) ;; This only has effect if the user set the latter var to `hide'. (let ((x-gtk-resize-child-frames posframe-gtk-resize-child-frames)) - (fit-frame-to-buffer - posframe height min-height width min-width))) + (fit-frame-to-buffer-1 + posframe height min-height width min-width nil nil nil))) (defun posframe--set-frame-size (posframe height min-height width min-width) "Set POSFRAME's size.