branch: externals/posframe commit b71b530ff73b56f956097d844db2cd66dc0e632b Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
Simplify posframe--set-frame-size --- posframe.el | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/posframe.el b/posframe.el index 1a5041e..d93c5d3 100644 --- a/posframe.el +++ b/posframe.el @@ -649,17 +649,10 @@ will be removed." "Set POSFRAME's size. It will set the size by the POSFRAME's HEIGHT, MIN-HEIGHT WIDTH and MIN-WIDTH." - (if (and width height) - (unless (equal posframe--last-posframe-size - (list height min-height width min-width)) - (fit-frame-to-buffer - posframe height min-height width min-width) - (setq-local posframe--last-posframe-size - (list height min-height width min-width))) - (fit-frame-to-buffer - posframe height min-height width min-width) - (setq-local posframe--last-posframe-size - (list height min-height width min-width)))) + (fit-frame-to-buffer + posframe height min-height width min-width) + (setq-local posframe--last-posframe-size + (list height min-height width min-width))) (defun posframe--set-frame-position (posframe position parent-frame-width