branch: elpa/helm
commit 469a8934861e12d0ce50dff2330395c78a45cb3d
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Improve comment
---
 helm-core.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/helm-core.el b/helm-core.el
index d146a7b27e..7e31c2d365 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -5570,12 +5570,14 @@ See `helm-default-output-filter'."
                       "Inserting source header name = %S" (assq 'name source))
             (setcdr process-assoc
                     (append source `((insertion-marker . ,(point-marker))))))
-          ;; Split output and treat incomplete lines one by one.
+          ;; Split output and treat incomplete lines one by one.  We don't use
+          ;; OMIT-NULLS deliberately to have ("output" "") when splitting
+          ;; "output\n".
           (let ((lines (split-string output "\n"))
                 candidates)
             (while lines
-              (if (not (cdr lines))
-                  ;; store last incomplete line until new output arrives
+              (if (not (cdr lines)) ; An incomplete line.
+                  ;; store it until new output arrives.
                   (setcdr incomplete-line-info (pop lines))
                 (helm-aif (cdr incomplete-line-info)
                     (let ((head (pop lines)))

Reply via email to