File tree 1 file changed +2
-9
lines changed
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'"
1247
1247
(interactive )
1248
1248
(when-let* ((frame (lsp-ui-doc--get-frame))
1249
1249
(visible (lsp-ui-doc--frame-visible-p)))
1250
- (remove-hook 'post-command-hook 'lsp-ui-doc--unfocus-frame-post-command )
1251
1250
(remove-hook 'post-command-hook 'lsp-ui-doc--hide-frame )
1252
1251
(set-frame-parameter frame 'lsp-ui-doc--no-focus nil )
1253
1252
(set-frame-parameter frame 'cursor-type t )
@@ -1264,14 +1263,8 @@ It is supposed to be called from `lsp-ui--toggle'"
1264
1263
(set-frame-parameter frame 'cursor-type nil )
1265
1264
(lsp-ui-doc--with-buffer
1266
1265
(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))))
1275
1268
1276
1269
(provide 'lsp-ui-doc )
1277
1270
; ;; lsp-ui-doc.el ends here
You can’t perform that action at this time.
0 commit comments