summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2018-03-06 15:19:22 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2018-03-06 15:23:38 +0100
commitfe664986172d2cf98dd4e5f90b975bba0a5a5250 (patch)
tree329eeafc9cbe186e49b0c0754bcad529e110515a /helm.el
parent582931b3caac17c31d250cbca0411df73dc84345 (diff)
Display helm in a frame when initial frame has no minibuffer
* helm.el (helm-resolve-display-function): Do it.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/helm.el b/helm.el
index 5075e463..0e7c3bd5 100644
--- a/helm.el
+++ b/helm.el
@@ -2679,10 +2679,13 @@ value of `split-window-preferred-function' will be used by `display-buffer'."
The `helm-display-function' buffer local value takes precedence on
`helm-commands-using-frame'.
+If `helm-initial-frame' has no minibuffer, use
+`helm-display-buffer-in-own-frame' function.
Fallback to global value of `helm-display-function' when no local
value found and current command is not in `helm-commands-using-frame'."
(or (with-helm-buffer helm-display-function)
- (and (memq com helm-commands-using-frame)
+ (and (or (memq com helm-commands-using-frame)
+ (null (frame-parameter helm-initial-frame 'minibuffer)))
#'helm-display-buffer-in-own-frame)
(default-value 'helm-display-function)))