mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -132,7 +132,7 @@ Targets `vimmish-fold', `hideshow' and `outline' folds."
|
|||||||
(cl-loop with orig-pt = (point)
|
(cl-loop with orig-pt = (point)
|
||||||
for fn
|
for fn
|
||||||
in (list (lambda ()
|
in (list (lambda ()
|
||||||
(when hs-block-start-regexp
|
(when (bound-and-true-p hs-block-start-regexp)
|
||||||
(car (+fold--invisible-points count))))
|
(car (+fold--invisible-points count))))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(when (featurep 'vimish-fold)
|
(when (featurep 'vimish-fold)
|
||||||
|
Reference in New Issue
Block a user