[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico-posframe ef430c2a8a 1/2: Add vertico-posframe-t
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico-posframe ef430c2a8a 1/2: Add vertico-posframe-truncate-lines. |
Date: |
Mon, 21 Mar 2022 02:57:53 -0400 (EDT) |
branch: externals/vertico-posframe
commit ef430c2a8a69939bd8b358670fe83fb3e75a4ffd
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Add vertico-posframe-truncate-lines.
* vertico-posframe.el (vertico-posframe-truncate-lines): New custom.
(vertico-posframe--show): Use above custom.
---
vertico-posframe.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/vertico-posframe.el b/vertico-posframe.el
index da91b38b02..c5d874ed06 100644
--- a/vertico-posframe.el
+++ b/vertico-posframe.el
@@ -84,6 +84,10 @@ When nil, Using current frame's font as fallback."
"The min height of vertico-posframe."
:type 'number)
+(defcustom vertico-posframe-truncate-lines t
+ "Non-nil means truncate lines in vertico-posframe."
+ :type 'boolean)
+
(defcustom vertico-posframe-poshandler #'posframe-poshandler-frame-center
"The posframe poshandler used by vertico-posframe."
:type 'function)
@@ -219,7 +223,7 @@ is called, window-point will be set to WINDOW-POINT."
:override-parameters vertico-posframe-parameters
:refposhandler vertico-posframe-refposhandler
:hidehandler #'vertico-posframe-hidehandler
- :lines-truncate t
+ :lines-truncate vertico-posframe-truncate-lines
(funcall vertico-posframe-size-function)))))
;; NOTE: `posframe-show' will force set window-point to 0, so we
;; need reset it again after `posframe-show'.