emacsorphanage / helm-swoop

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

Cache is not cleared by narrow-to-defun #88

Closed lexa closed 8 years ago

lexa commented 8 years ago

Problem is that if i narrow to function, helm-swoop cache won't be cleared.

How to reproduce problem:

  1. open helm-swoop.el
  2. go to line 100
  3. call helm swoop : M-x helm-swoop
  4. quit from helm mode : C-g
  5. narrow to function : M-x narrow-to-defun
  6. call helm swoop : M-x helm-swoop

Now i see matches in all lines including lines hidden by narrowing.

P.S. narrowing to region works just fine.

ShingoFukuyama commented 8 years ago

Thank you, I've fixed now :)