minad / corfu

:desert_island: corfu.el - COmpletion in Region FUnction
GNU General Public License v3.0
1.06k stars 42 forks source link

Posframe window can get stuck if the cursor moves too fast #462

Closed tralph3 closed 1 month ago

tralph3 commented 1 month ago

In the attached video I tried to force the issue, but this is something that happens quite often. In about 1 hour it can happen about 5 or 6 times. Quite annoying.

The window just gets stuck and is entirely unresponsive. The only way to make it go away is to trigger another completion.

The issue seems to happen whenever Corfu is about to display the popup, but I move my cursor away quickly just before that.

https://github.com/minad/corfu/assets/41462117/fbe9b496-c2a1-405f-93e5-19b73225cfb6

tralph3 commented 1 month ago

This is my Corfu config:

(use-package corfu
  :ensure t
  :custom
  (corfu-auto t)
  (corfu-auto-delay 0.2)
  (corfu-auto-prefix 0)
  (corfu-min-width 60)
  (corfu-popupinfo-delay 0.5)
  (corfu-preview-current nil)
  (corfu-preselect 'prompt)
  (corfu-quit-no-match t)
  (corfu-on-exact-match 'quit)
  (corfu-cycle t)
  :config
  (corfu-popupinfo-mode)
  (global-corfu-mode))
minad commented 1 month ago

Duplicate of https://github.com/minad/corfu/discussions/453? Do you have a minimal recipe? I have never seen such a sticking popup so I have difficulties debugging the problem.