summaryrefslogtreecommitdiff
path: root/corfu.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-10-22 12:38:12 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2024-10-22 12:40:40 +0200
commit6f5518ea58498af9cf86b8fafbdf1ef4d0997dcc (patch)
tree8f167e7b427b347acd7319e8fb3b78886301891a /corfu.el
parent557f84811ae0adb06d06673594252c9cc9707665 (diff)
Detect tty child frames
See https://lists.gnu.org/archive/html/emacs-devel/2024-10/msg00491.html Many thanks to @gerd-moellmann!
Diffstat (limited to 'corfu.el')
-rw-r--r--corfu.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index c465534..223857b 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1062,7 +1062,9 @@ A scroll bar is displayed from LO to LO+BAR."
(cl-defgeneric corfu--popup-support-p ()
"Return non-nil if child frames are supported."
- (display-graphic-p))
+ (or (display-graphic-p)
+ ;; Upcoming feature: Gerd Möllmann's child frame support on TTY.
+ (featurep 'tty-child-frames)))
(cl-defgeneric corfu--insert (status)
"Insert current candidate, exit with STATUS if non-nil."