abo-abo / swiper

Ivy - a generic completion frontend for Emacs, Swiper - isearch with an overview, and more. Oh, man!
https://oremacs.com/swiper/
2.3k stars 338 forks source link

counsel-rg displays "1 more chars" even when rg has already started #3029

Open bcc32 opened 10 months ago

bcc32 commented 10 months ago

I, and several users at my site, have observed the following confusing behavior with counsel-rg when the user types a query string quickly:

  1. The ++ marker to indicate that rg is still running is not displayed
  2. 1 chars more (or sometimes 2 chars more) is displayed despite the query string being long enough
  3. rg is running

This seems to happen when rg is running but just hasn't produced any results yet (or maybe never will, depending on the query string).

Eventually, when rg completes, the correct message "no matches found" is displayed. But counsel never displays the state where rg is still running.

Here's a screenshot of the bad state:

image

kuba-orlik commented 9 months ago

I'm experiencing a similar issue, but rg doesn't seem to ever start when getting enough characters