emacsorphanage / helm-swoop

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

avoid error when moving lines with no results #89

Closed cosmicexplorer closed 8 years ago

cosmicexplorer commented 8 years ago

Previously, when using helm-multi-swoop-all, typing in a pattern which has no results, and pressing <up> or <down> it would error out at (get-buffer nil). This is because it doesn't check (like helm-swoop--move-line-action) whether there is a match, and assumes there is. This only performs the action if there are any results.

ShingoFukuyama commented 8 years ago

Thank you for fixing the error :+1: