emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/posframe ca2ad3a 4/9: Fix frame fit when there are lead


From: Feng Shu
Subject: [elpa] externals/posframe ca2ad3a 4/9: Fix frame fit when there are leading or trailing spaces
Date: Tue, 12 Jan 2021 22:15:06 -0500 (EST)

branch: externals/posframe
commit ca2ad3ae10b9656055e4c8f9a18fcd202248c3b8
Author: Aaron Jensen <aaronjensen@gmail.com>
Commit: Aaron Jensen <aaronjensen@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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]