summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-21 07:43:08 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-21 07:43:08 +0200
commit647ede64d90cc5c6af0a20f46b259183a014f54d (patch)
tree9065c4dce368c81dcd2eeed4bfba8fac34559b16 /helm.el
parentef2dc0b08d6acd28237c80abfbe9fd5c6b04c5a9 (diff)
Fix reinitialization in force-update (#1843)
* helm.el (helm-force-update): No need to check for source which will be nil when helm-buffer is empty.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/helm.el b/helm.el
index accb57c5..9415d42f 100644
--- a/helm.el
+++ b/helm.el
@@ -3771,9 +3771,7 @@ passed as argument to `recenter'."
(regexp-quote it)
it)))
(setq helm--force-updating-p t)
- (when source
- (mapc 'helm-force-update--reinit
- (helm-get-sources)))
+ (mapc 'helm-force-update--reinit (helm-get-sources))
(helm-update (or preselect selection) source)
(and recenter (recenter (and (numberp recenter) recenter))))))