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

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

[nongnu] elpa/corfu-terminal 755cbfcc20 2/3: Fix miscalcutation of popon


From: ELPA Syncer
Subject: [nongnu] elpa/corfu-terminal 755cbfcc20 2/3: Fix miscalcutation of popon position
Date: Sun, 29 May 2022 07:58:11 -0400 (EDT)

branch: elpa/corfu-terminal
commit 755cbfcc2084cde89f372c9577cd85b465343455
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>

    Fix miscalcutation of popon position
---
 corfu-terminal.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/corfu-terminal.el b/corfu-terminal.el
index b746502f28..bbcb39d3d1 100644
--- a/corfu-terminal.el
+++ b/corfu-terminal.el
@@ -151,8 +151,8 @@ definition in Corfu."
                                     corfu-terminal-position-right-margin
                                     popon-width))
                             0)
-                           (if (and (< (floor (window-screen-lines))
-                                       (+ (cdr pos) (length lines)))
+                           (if (and (< (window-body-height)
+                                       (+ (1+ (cdr pos)) (length lines)))
                                     (>= (cdr pos) (length lines)))
                                (- (cdr pos) (length lines))
                              (1+ (cdr pos))))))))



reply via email to

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