This commit is contained in:
Yuan Fu 2019-05-23 22:11:06 +08:00
parent 0d671026b9
commit 0071538273
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -256,7 +256,9 @@ Checkout `lsp-ui-doc--make-frame', `lsp-ui-doc--move-frame'."
(main-frame (selected-frame)))
(if (and eldoc-box--frame (frame-live-p eldoc-box--frame))
(progn (setq frame eldoc-box--frame)
(setq window (frame-selected-window frame)))
(setq window (frame-selected-window frame))
;; in case the main frame changed
(set-frame-parameter frame 'parent-frame main-frame))
(setq window (display-buffer-in-child-frame
buffer
`((child-frame-parameters . ,parameter))))