File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments