Skip to content

Commit 80f09ed

Browse files
authored
Check if posframe workable via posframe-workable-p (#238)
This makes rime uses posframe in TTY when tty-child-frames feature is enabled.
1 parent 8837e4b commit 80f09ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rime.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ Currently just deactivate input method."
537537

538538
(defun rime--posframe-display-content (content)
539539
"Display CONTENT with posframe."
540-
(if (and (featurep 'posframe) (display-graphic-p))
540+
(if (and (featurep 'posframe) (posframe-workable-p))
541541
(if (string-blank-p content)
542542
(posframe-hide rime-posframe-buffer)
543543
(let*

0 commit comments

Comments
 (0)