branch: elpa/corfu-terminal
commit 130fb7568933672cb0d330d88c683425f266a1d9
Merge: 328942981e 83bcc0a661
Author: Akib Azmain Turja <a...@disroot.org>
Commit: Akib Azmain Turja <a...@disroot.org>

    Merge pull request 'corfu--popup-show's pos argument is posn now' (#23) 
from scturtle/emacs-corfu-terminal:master into master
    
    Reviewed-on: https://codeberg.org/akib/emacs-corfu-terminal/pulls/23
---
 corfu-terminal.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corfu-terminal.el b/corfu-terminal.el
index 58c7cf174a..4a14b5cf8f 100644
--- a/corfu-terminal.el
+++ b/corfu-terminal.el
@@ -172,7 +172,7 @@ definition in Corfu."
                        (list pos popon-width (window-start)
                              (buffer-modified-tick)))
                 (car corfu-terminal--last-position)
-              (let ((pos (popon-x-y-at-pos pos)))
+              (let ((pos (popon-x-y-at-pos (if (posnp pos) (posn-point pos) 
pos))))
                 (cons
                  (max
                   (min (- (car pos) (+ off margin-left-width))

Reply via email to