diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-08-22 22:37:35 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-08-22 22:37:35 +0200 |
commit | 875f0a2396c6dcee13be17eec4b507a908f2953e (patch) | |
tree | 1e40063a44e21a31511bcb5fd5159a946b850a4d /helm.el | |
parent | f1a7b73651f1d8faba07ba2907c91563e1e77e32 (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.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |