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 case when current-prefix is list #28

Closed syohex closed 10 years ago

syohex commented 10 years ago

current-prefix is list such as 'C-u M-x helm-swoop'. helm-swoop-last-prefix-number is set it, but this causes error. helm-swoop-last-prefix-number should be integer.

I got following error when I execute C-u M-x helm-swoop.

if: Wrong type argument: number-or-marker-p, (4)
ShingoFukuyama commented 10 years ago

I didn't know such a convenient function. Thank you!

(prefix-numeric-value 4)                   ; => 4
(prefix-numeric-value '(4))                ; => 4