Skip to content

Commit 00f1fec

Browse files
authored
Revert 'Hide doc frame on next post comman' (#778)
* Revert 'Hide doc frame on next post comman' * remain intact
1 parent fbaf47e commit 00f1fec

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lsp-ui-doc.el

+2-9
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,6 @@ It is supposed to be called from `lsp-ui--toggle'"
12471247
(interactive)
12481248
(when-let* ((frame (lsp-ui-doc--get-frame))
12491249
(visible (lsp-ui-doc--frame-visible-p)))
1250-
(remove-hook 'post-command-hook 'lsp-ui-doc--unfocus-frame-post-command)
12511250
(remove-hook 'post-command-hook 'lsp-ui-doc--hide-frame)
12521251
(set-frame-parameter frame 'lsp-ui-doc--no-focus nil)
12531252
(set-frame-parameter frame 'cursor-type t)
@@ -1264,14 +1263,8 @@ It is supposed to be called from `lsp-ui--toggle'"
12641263
(set-frame-parameter frame 'cursor-type nil)
12651264
(lsp-ui-doc--with-buffer
12661265
(setq cursor-type nil))
1267-
(if lsp-ui-doc--from-mouse
1268-
(make-frame-invisible frame)
1269-
(add-hook'post-command-hook 'lsp-ui-doc--unfocus-frame-post-command))))
1270-
1271-
(defun lsp-ui-doc--unfocus-frame-post-command ()
1272-
"Hide frame on the next post command after unfocus frame."
1273-
(add-hook 'post-command-hook 'lsp-ui-doc--hide-frame)
1274-
(remove-hook 'post-command-hook 'lsp-ui-doc--unfocus-frame-post-command))
1266+
(when lsp-ui-doc--from-mouse
1267+
(make-frame-invisible frame))))
12751268

12761269
(provide 'lsp-ui-doc)
12771270
;;; lsp-ui-doc.el ends here

0 commit comments

Comments
 (0)