Simplify childframe creation
display-buffer-in-childframe will automatically reuse childframe
This commit is contained in:
parent
ae1a4690a9
commit
6ceeb22b68
@ -235,10 +235,9 @@ Checkout `lsp-ui-doc--make-frame', `lsp-ui-doc--move-frame'."
|
||||
`((default-minibuffer-frame . ,(selected-frame))
|
||||
(minibuffer . ,(minibuffer-window))
|
||||
(left-fringe . ,(frame-char-width)))))
|
||||
(window (or (and eldoc-box--frame (frame-selected-window eldoc-box--frame))
|
||||
(display-buffer-in-child-frame
|
||||
buffer
|
||||
`((child-frame-parameters . ,parameter)))))
|
||||
(window (display-buffer-in-child-frame
|
||||
buffer
|
||||
`((child-frame-parameters . ,parameter))))
|
||||
(frame (window-frame window))
|
||||
(main-frame (selected-frame)))
|
||||
(make-frame-visible frame)
|
||||
|
Loading…
Reference in New Issue
Block a user