Skip to content

Commit

Permalink
Close joaotavora#58: Erase company-doc buffer in between doc requests
Browse files Browse the repository at this point in the history
* eglot.el (eglot-completion-at-point): Erase temporary
"*eglot-doc*" buffer for company's doc.
  • Loading branch information
joaotavora committed Aug 2, 2018
1 parent 6b14711 commit e476411
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,7 @@ is not active."
:documentation)))))
(when documentation
(with-current-buffer (get-buffer-create " *eglot doc*")
(erase-buffer)
(insert (eglot--format-markup documentation))
(current-buffer)))))
:exit-function (lambda (_string _status)
Expand Down

0 comments on commit e476411

Please sign in to comment.