From a34e2e2e6ee7e2caf9b94add040497000194a8fe Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sat, 5 Jan 2019 19:45:50 -0500 Subject: [PATCH] Don't cleanup when clicking popup --- eldoc-box.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eldoc-box.el b/eldoc-box.el index 2d65c61..ce38fed 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -329,7 +329,9 @@ If (point) != last point, cleanup frame.") (defun eldoc-box--eglot-help-at-point-cleanup () "Try to clean up the childframe made by eldoc-box hack." - (if (eq (point) eldoc-box-eglot-help-at-point-last-point) + (if (or (eq (point) eldoc-box-eglot-help-at-point-last-point) + ;; don't clean up when the user clicks childframe + (eq (selected-frame) eldoc-box--frame)) (run-with-timer 0.1 nil #'eldoc-box--eglot-help-at-point-cleanup) (eldoc-box-quit-frame)))