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

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

[nongnu] elpa/corfu-popup 2b4a7d7d16 18/26: Remove hardcoded popon heigh


From: ELPA Syncer
Subject: [nongnu] elpa/corfu-popup 2b4a7d7d16 18/26: Remove hardcoded popon height
Date: Sun, 22 May 2022 12:58:16 -0400 (EDT)

branch: elpa/corfu-popup
commit 2b4a7d7d16589051c88dadef6238a9c10b2571fe
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>

    Remove hardcoded popon height
---
 corfu-popup.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/corfu-popup.el b/corfu-popup.el
index 5def7407d8..43983dbe81 100644
--- a/corfu-popup.el
+++ b/corfu-popup.el
@@ -114,8 +114,8 @@ Show a vertical scroll bar of size BAR + 1 from LOth line."
                         (cons (max 0 (- (car pos) off))
                               (if (and (< (floor (window-screen-lines))
                                           (+ (cdr pos) (length lines)))
-                                       (>= (cdr pos) 8))
-                                  (- (cdr pos) 8)
+                                       (>= (cdr pos) (length lines)))
+                                  (- (cdr pos) (length lines))
                                 (1+ (cdr pos))))))))
     (setq corfu-popup--last-position
           (list popon-pos pos (window-start) (buffer-modified-tick)))



reply via email to

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