branch: elpa/helm
commit 6e9914cfc2903e4132f66374aa8b7366b535382f
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Only recenter when helm-window is present
---
helm-core.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/helm-core.el b/helm-core.el
index e113c97b99..6e70061336 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -6560,7 +6560,7 @@ CANDIDATE-OR-REGEXP from there."
(helm--mouse-reset-selection-help-echo))
(helm-mark-current-line)
;; helm-force-update is already recentering.
- (unless helm--force-updating-p (recenter))
+ (unless (or helm--force-updating-p (not (helm-window))) (recenter))
(helm-display-mode-line (or source (helm-get-current-source)))
(helm-log-run-hook "helm-preselect" 'helm-after-preselection-hook)))