summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-07-28 21:51:29 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-07-28 21:51:29 +0200
commit576cc21f381977e1d3c509d94f73853a74612cff (patch)
tree638783d9a72ad1658919357bc5168066c900a105 /helm.el
parent81216449833dd0a28bf337bd423cec819c53c2e4 (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.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/helm.el b/helm.el
index e98e9b6f..7944ec9f 100644
--- a/helm.el
+++ b/helm.el
@@ -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))