summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-08-22 22:37:35 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-08-22 22:37:35 +0200
commit875f0a2396c6dcee13be17eec4b507a908f2953e (patch)
tree1e40063a44e21a31511bcb5fd5159a946b850a4d /helm.el
parentf1a7b73651f1d8faba07ba2907c91563e1e77e32 (diff)
Fix helm--set-header-line with small windows.
* helm.el (helm--set-header-line): vertical-motion should run on helm-window and not on minibuffer which have always the size of the frame.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/helm.el b/helm.el
index b23f2f6a..2592c154 100644
--- a/helm.el
+++ b/helm.el
@@ -3757,7 +3757,7 @@ Possible value of DIRECTION are 'next or 'previous."
(defun helm--set-header-line (&optional update)
(with-selected-window (minibuffer-window)
- (let* ((beg (save-excursion (vertical-motion 0) (point)))
+ (let* ((beg (save-excursion (vertical-motion 0 (helm-window)) (point)))
(end (save-excursion (end-of-visual-line) (point)))
;; The visual line where the cursor is.
(cont (buffer-substring beg end))