diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-03-06 15:19:22 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-03-06 15:23:38 +0100 |
commit | fe664986172d2cf98dd4e5f90b975bba0a5a5250 (patch) | |
tree | 329eeafc9cbe186e49b0c0754bcad529e110515a /helm.el | |
parent | 582931b3caac17c31d250cbca0411df73dc84345 (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.el | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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))) |