diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-07-28 21:51:29 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-07-28 21:51:29 +0200 |
commit | 576cc21f381977e1d3c509d94f73853a74612cff (patch) | |
tree | 638783d9a72ad1658919357bc5168066c900a105 /helm.el | |
parent | 81216449833dd0a28bf337bd423cec819c53c2e4 (diff) |
Fix cycling in sources when last source is dummy and empty (#1117).
* helm.el (helm-move--next-source-fn):
Empty source at eob are just not displayed unless they are dummy.
Diffstat (limited to 'helm.el')
-rw-r--r-- | helm.el | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3900,7 +3900,13 @@ Key arg DIRECTION can be one of: (forward-line 1)) (defun helm-move--next-source-fn () - (goto-char (or (helm-get-next-header-pos) (point-min)))) + (goto-char (or (and (not (save-excursion + (forward-line 1) (eobp))) + ;; Empty source at eob are just + ;; not displayed unless they are dummy. + ;; Issue #1117. + (helm-get-next-header-pos)) + (point-min)))) (defun helm-move--goto-source-fn (source-or-name) (goto-char (point-min)) |