From dc8ad7896ab09ce071cbebcaacb867d1b42b818a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20M=C3=B8ller?= Date: Wed, 22 Jan 2020 12:06:29 +0100 Subject: [PATCH] Display header line in Helm posframe But only if helm-echo-input-in-header-line is set to true. --- modules/completion/helm/autoload/posframe.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/completion/helm/autoload/posframe.el b/modules/completion/helm/autoload/posframe.el index 25ac3fd09..2c64d5fa8 100644 --- a/modules/completion/helm/autoload/posframe.el +++ b/modules/completion/helm/autoload/posframe.el @@ -10,6 +10,9 @@ bottom, which is easier on the eyes on big displays." (truncate (/ (frame-pixel-height parent-frame) 2))))) +(when helm-echo-input-in-header-line + (add-hook 'helm-minibuffer-set-up-hook #'helm-hide-minibuffer-maybe)) + (defvar +helm--posframe-buffer nil) ;;;###autoload (defun +helm-posframe-display-fn (buffer &optional _resume) @@ -23,6 +26,7 @@ bottom, which is easier on the eyes on big displays." (setq +helm--posframe-buffer buffer) :position (point) :poshandler +helm-posframe-handler + :respect-header-line helm-echo-input-in-header-line :width (max (cl-typecase .width (integer .width)