summaryrefslogtreecommitdiff
path: root/helm-utils.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2018-12-08 22:35:13 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2018-12-08 22:35:13 +0100
commitbc72539b502f6b014319635a6f42db7dbf887941 (patch)
tree9157f11b953a14ba8c14b927af92754ffb196558 /helm-utils.el
parent7e20226363a2bab6ed36ff6ad8efabc1e4146ee3 (diff)
Fix updating in helm-show-all-in-this-source-only
by binding helm-candidate-number-limit locally. * helm-utils.el (helm-show-all-in-this-source-only): Let binding of helm-candidate-number-limit is lost when used outside with updating.
Diffstat (limited to 'helm-utils.el')
-rw-r--r--helm-utils.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/helm-utils.el b/helm-utils.el
index 5c7d34e9..5e43fc57 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -452,13 +452,16 @@ The prefix arg have no effect when toggling to only
candidate-number-limit."
(interactive "p")
(with-helm-alive-p
- (with-helm-window
+ (with-helm-buffer
(if helm-source-filter
- (helm-set-source-filter nil)
+ (progn
+ (setq-local helm-candidate-number-limit
+ (default-value 'helm-candidate-number-limit))
+ (helm-set-source-filter nil))
(with-helm-default-directory (helm-default-directory)
- (let ((helm-candidate-number-limit (and (> arg 1) arg)))
- (helm-set-source-filter
- (list (helm-get-current-source)))))))))
+ (setq-local helm-candidate-number-limit (and (> arg 1) arg))
+ (helm-set-source-filter
+ (list (helm-get-current-source))))))))
(put 'helm-show-all-in-this-source-only 'helm-only t)
(defun helm-display-all-sources ()