branch: externals/vertico-posframe
commit c5a8b5f72a582e88a2a696a3bbc2df7af28bd229
Author: Feng Shu <tuma...@163.com>
Commit: Feng Shu <tuma...@163.com>

    Fix: Use cursor-type as the cursor value #55
---
 vertico-posframe.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/vertico-posframe.el b/vertico-posframe.el
index 101cd40afc..964934b1ee 100644
--- a/vertico-posframe.el
+++ b/vertico-posframe.el
@@ -307,7 +307,13 @@ vertico-posframe works with vertico multiform toggle."
         (setq-local vertico-posframe--use-auto-hscroll-mode-p t)))
     (apply #'posframe-show
            buffer
-           :cursor cursor-type
+           :cursor (if (eq cursor-type t)
+                       ;; For vertico-posframe special, when
+                       ;; cursor-type is t, hollow box will be showed,
+                       ;; which is not expected by user, so we should
+                       ;; force show it with box.
+                       'box
+                     cursor-type)
            :tty-non-selected-cursor t
            :window-point window-point
            :font (buffer-local-value 'vertico-posframe-font buffer)

Reply via email to