Fix go to init function in helm-spacemacs

The function may fail when looking for an init function in
the current buffer.
This commit is contained in:
syl20bnr 2014-12-24 00:21:47 -05:00
parent 605389bcc7
commit 460b3eb063

View file

@ -113,6 +113,7 @@
layer)))
(filename (concat path "packages.el")))
(find-file filename)
(goto-char (point-min))
(re-search-forward (format "init-%s" package))
(beginning-of-line))))