summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helm-occur.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/helm-occur.el b/helm-occur.el
index 6cd132f0..a3eab90d 100644
--- a/helm-occur.el
+++ b/helm-occur.el
@@ -218,7 +218,6 @@ engine beeing completely different and also much faster."
(condition-case _err
(re-search-forward pattern nil t)
(invalid-regexp nil)))
- :get-line 'buffer-substring
:init `(lambda ()
(with-current-buffer ,buf
(let* ((bsfn (or (cdr (assq
@@ -226,6 +225,7 @@ engine beeing completely different and also much faster."
helm-occur-buffer-substring-fn-for-modes))
#'buffer-substring-no-properties))
(contents (funcall bsfn (point-min) (point-max))))
+ (helm-attrset 'get-line bsfn)
(with-current-buffer (helm-candidate-buffer 'local)
(insert contents)
(goto-char (point-min))