branch: externals/posframe
commit ec5901e75af20bf7ddb383b318b7db4d63dbaa3b
Merge: f8c3e56189 f340b0ee89
Author: tumashu <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #149 from kassick/patch-1
    
    fix: avoid using maybe-unbound symbol
---
 posframe.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/posframe.el b/posframe.el
index dc8ec4652d..03ab9a18c5 100644
--- a/posframe.el
+++ b/posframe.el
@@ -421,7 +421,7 @@ You can use `posframe-delete-all' to delete all posframes."
          (font-height (with-current-buffer (window-buffer parent-window)
                         (posframe--get-font-height position)))
          (parent-text-scale-mode-amount (with-current-buffer (window-buffer 
parent-window)
-                                          (and text-scale-mode 
text-scale-mode-amount)))
+                                          (and (bound-and-true-p 
text-scale-mode) text-scale-mode-amount)))
          (mode-line-height (window-mode-line-height
                             (and (window-minibuffer-p)
                                  (ignore-errors (window-in-direction 
'above)))))

Reply via email to