[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/corfu-terminal 83bcc0a661 2/4: compitable with corfu--popu
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/corfu-terminal 83bcc0a661 2/4: compitable with corfu--popup-show's pos type change |
Date: |
Tue, 27 Jun 2023 16:00:26 -0400 (EDT) |
branch: elpa/corfu-terminal
commit 83bcc0a661a4bac2573c1edd119605fe0b04e150
Author: scturtle <scturtle@noreply.codeberg.org>
Commit: scturtle <scturtle@gmail.com>
compitable with corfu--popup-show's pos type change
https://github.com/minad/corfu/commit/1fd386573472f20be53e9da91794b2ca9cf06279
---
corfu-terminal.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/corfu-terminal.el b/corfu-terminal.el
index 3ee19d2556..08e1d3ba4f 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))