emacsorphanage / helm-swoop

Efficiently hopping squeezed lines powered by Emacs helm interface
GNU General Public License v3.0
689 stars 55 forks source link

Source buffer position doesn't account for narrowing when moving between candidates #67

Closed vermiculus closed 9 years ago

vermiculus commented 9 years ago
  1. Insert a large amount of text (line-wise) into a buffer and narrow it to an arbitrary section.
  2. Execute helm-swoop and enter query text.
  3. Note source buffer does not agree with candidate selection buffer as different candidates are selected.

This is likely caused by a simple goto-line somewhere. I'll bet there is some version of goto-line that takes buffer narrowing into account, but I haven't the freedom to poke around that today :smile:

vermiculus commented 9 years ago

As a matter of fact, behavior is completely erratic when the buffer has undergone narrowing. If I widen the buffer after swooping, only the narrowed text will be searched. Is there some sort of caching going on?

ShingoFukuyama commented 9 years ago

Thank you for the issue, I also had been bothered by the behavior once in a while. As you mentioned, buffer caching is the culprit, but I managed to clear cache by narrowing or widening :grinning: