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

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

[elpa] externals/posframe 7bc5857 39/40: Fix: Position for font-height i


From: Feng Shu
Subject: [elpa] externals/posframe 7bc5857 39/40: Fix: Position for font-height invalid #53
Date: Wed, 5 Feb 2020 04:27:23 -0500 (EST)

branch: externals/posframe
commit 7bc58577e81463e9983aad1ae07b2fa4c12bdb5b
Author: feng <feng@debian>
Commit: feng <feng@debian>

    Fix: Position for font-height invalid #53
---
 posframe.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/posframe.el b/posframe.el
index 6c3c8a4..56b1a98 100644
--- a/posframe.el
+++ b/posframe.el
@@ -584,8 +584,8 @@ You can use `posframe-delete-all' to delete all posframes."
       (cdr posframe--last-font-height-info)
     (let* ((font (when (and (integerp position)
                             (not (= position 1)))
-                   (font-at (if (and (= position (point-max)))
-                                (- position 1)
+                   (font-at (if (and (>= position (point-max)))
+                                (- (point-max) 1)
                               position))))
            (height (when (integerp position)
                      (if (or (= position 1) (not (fontp font)))



reply via email to

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