Enable visual-line-mode in childframe

* eldoc-box.el (eldoc-box--display): Add visual-line-mode.
This commit is contained in:
Yuan Fu 2022-06-11 18:15:02 -07:00
parent 8d523f4fdd
commit 1ba418ba2b
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -202,6 +202,7 @@ STR has to be a proper documentation, not empty string, not nil, etc."
(erase-buffer)
(insert str)
(goto-char (point-min))
(visual-line-mode)
(run-hook-with-args 'eldoc-box-buffer-hook))
(eldoc-box--get-frame doc-buffer)))