From 61f3bf10e51dcf4431842fbc345b0afe8538cf2d Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Sun, 15 May 2022 04:06:41 +0800 Subject: [PATCH] Revert 696 --- lsp-ui-doc.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lsp-ui-doc.el b/lsp-ui-doc.el index 63ae7b4d..1a1a6666 100644 --- a/lsp-ui-doc.el +++ b/lsp-ui-doc.el @@ -961,10 +961,7 @@ BUFFER is the buffer where the request has been made." (-some->> contents lsp-ui-doc--extract (replace-regexp-in-string "\r" "") - (replace-regexp-in-string " " " "))) - (when lsp-ui-doc--unfocus-frame-timer - (cancel-timer lsp-ui-doc--unfocus-frame-timer)) - (add-hook 'post-command-hook 'lsp-ui-doc--glance-hide-frame)) + (replace-regexp-in-string " " " ")))) (lsp-ui-doc--hide-frame)))) (defun lsp-ui-doc--delete-frame () @@ -1182,7 +1179,10 @@ It is supposed to be called from `lsp-ui--toggle'" "Trigger display hover information popup and hide it on next typing." (interactive) (let ((lsp-ui-doc-show-with-cursor t)) - (lsp-ui-doc--make-request))) + (lsp-ui-doc--make-request)) + (when lsp-ui-doc--unfocus-frame-timer + (cancel-timer lsp-ui-doc--unfocus-frame-timer)) + (add-hook 'post-command-hook 'lsp-ui-doc--glance-hide-frame)) (define-minor-mode lsp-ui-doc-frame-mode "Marker mode to add additional key bind for lsp-ui-doc-frame."