summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2018-02-22 11:04:38 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2018-02-22 11:06:40 +0100
commit8dc4fddbe8c25480efed3cff50330246796eca6c (patch)
tree38735710dbe14b851441360f007682eb465d615a /helm.el
parentb6b80c706b80d990623050eafb043fced7a68327 (diff)
Ensure preselect run in helm-window when updating (#1971)
* helm.el (helm-update): Do it.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/helm.el b/helm.el
index c65bd859..82c23207 100644
--- a/helm.el
+++ b/helm.el
@@ -4012,7 +4012,9 @@ without recomputing them, it should be a list of lists."
(helm-log-run-hook 'helm-after-update-hook)))
(when preselect
(helm-log "Update preselect candidate %s" preselect)
- (helm-preselect preselect source))
+ (if (helm-window)
+ (with-helm-window (helm-preselect preselect source))
+ (helm-preselect preselect source)))
(setq helm--force-updating-p nil))
(helm-log "end update")))