Skip to content

Commit 370022b

Browse files
authored
Revert 696 (#710)
1 parent eba9c4e commit 370022b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lsp-ui-doc.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -961,10 +961,7 @@ BUFFER is the buffer where the request has been made."
961961
(-some->> contents
962962
lsp-ui-doc--extract
963963
(replace-regexp-in-string "\r" "")
964-
(replace-regexp-in-string " " " ")))
965-
(when lsp-ui-doc--unfocus-frame-timer
966-
(cancel-timer lsp-ui-doc--unfocus-frame-timer))
967-
(add-hook 'post-command-hook 'lsp-ui-doc--glance-hide-frame))
964+
(replace-regexp-in-string " " " "))))
968965
(lsp-ui-doc--hide-frame))))
969966

970967
(defun lsp-ui-doc--delete-frame ()
@@ -1182,7 +1179,10 @@ It is supposed to be called from `lsp-ui--toggle'"
11821179
"Trigger display hover information popup and hide it on next typing."
11831180
(interactive)
11841181
(let ((lsp-ui-doc-show-with-cursor t))
1185-
(lsp-ui-doc--make-request)))
1182+
(lsp-ui-doc--make-request))
1183+
(when lsp-ui-doc--unfocus-frame-timer
1184+
(cancel-timer lsp-ui-doc--unfocus-frame-timer))
1185+
(add-hook 'post-command-hook 'lsp-ui-doc--glance-hide-frame))
11861186

11871187
(define-minor-mode lsp-ui-doc-frame-mode
11881188
"Marker mode to add additional key bind for lsp-ui-doc-frame."

0 commit comments

Comments
 (0)