emacsorphanage / helm-swoop

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

But report for a snippet in README.md #141

Closed c02y closed 4 years ago

c02y commented 5 years ago

The last helm-swoop-pre-input-function at the end of README.md

(setq helm-swoop-pre-input-function
      (lambda ()
        (let (($pre-input (thing-at-point 'symbol)))
          (if (eq (length $pre-input) 0)
              helm-swoop-pattern ;; this variable keeps the last used words
            $pre-input))))

should be

(setq helm-swoop-pre-input-function 
      (lambda ()
        (let (($pre-input (thing-at-point 'symbol)))
          (if (eq (length $pre-input) 0)
              (if (boundp 'helm-swoop-pattern)
                  helm-swoop-pattern ;; this variable keeps the last used words
                "") ;; first time helm-swoop and no thing at point
            $pre-input)))
conao3 commented 5 years ago

I have tested, but I cannot find any error. If you are still facing this issue, please comment with reproducible steps.