emacsorphanage / helm-swoop

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

[fix] Use quoted string when get pre-input from selected region. #155

Closed cireu closed 5 years ago

cireu commented 5 years ago

Close #140

conao3 commented 5 years ago

Looks good to me. Thanks!

conao3 commented 5 years ago

When helm-swoop run in empty line, I had got this error. Maybe this error caused this change.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  regexp-quote(nil)
  helm-swoop-pre-input-optimize(nil)
  helm-swoop()
  funcall-interactively(helm-swoop)
  call-interactively(helm-swoop nil nil)
  command-execute(helm-swoop)