branch: externals/vertico-posframe
commit 8eba815f6b6937e3f7700549f333f12629635034
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
Fix: Error thrown when attempting to narrow consult results. #15
* vertico-posframe.el (vertico-posframe--show-minibuffer-p): check
this-command symbol or not.
---
vertico-posframe.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/vertico-posframe.el b/vertico-posframe.el
index d4f07a85e2..8f2a9a9553 100644
--- a/vertico-posframe.el
+++ b/vertico-posframe.el
@@ -255,7 +255,9 @@ is called, window-point will be set to WINDOW-POINT."
(lambda (rule)
(cond ((functionp rule)
(funcall rule))
- ((and rule (stringp rule))
+ ((and rule
+ (stringp rule)
+ (symbolp this-command))
(string-match-p rule (symbol-name this-command)))
((symbolp rule)
(symbol-value rule))