summaryrefslogtreecommitdiff
path: root/helm-regexp.el
diff options
context:
space:
mode:
Diffstat (limited to 'helm-regexp.el')
-rw-r--r--helm-regexp.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/helm-regexp.el b/helm-regexp.el
index d9890abc..d4aa2ae2 100644
--- a/helm-regexp.el
+++ b/helm-regexp.el
@@ -392,9 +392,8 @@ Same as `helm-moccur-goto-line' but go in new frame."
(buffer-name (current-buffer))
(remove helm-current-buffer buffers))
buffers)))
- (unless helm-source-moccur
- (setq helm-source-moccur
- (helm-make-source "Moccur" 'helm-source-multi-occur)))
+ (helm--maybe-build-source 'helm-source-moccur
+ (helm-make-source "Moccur" 'helm-source-multi-occur))
(helm-attrset 'moccur-buffers bufs helm-source-moccur)
(helm-set-local-variable 'helm-multi-occur-buffer-list bufs)
(helm-set-local-variable