editor/fold: fix void-variable hs-block-start-regexp

Which will happen if +fold/next is called before hideshow is loaded.
This commit is contained in:
Henrik Lissner 2019-10-14 13:19:32 -04:00
parent d1cef7e498
commit 3a89c3f79d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -132,7 +132,7 @@ Targets `vimmish-fold', `hideshow' and `outline' folds."
(cl-loop with orig-pt = (point)
for fn
in (list (lambda ()
(when hs-block-start-regexp
(when (bound-and-true-p hs-block-start-regexp)
(car (+fold--invisible-points count))))
(lambda ()
(when (featurep 'vimish-fold)