]> code.delx.au - gnu-emacs-elpa/commitdiff
diff-hl-dired-update: Only process the results once
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 7 Sep 2013 23:23:54 +0000 (02:23 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 7 Sep 2013 23:23:54 +0000 (02:23 +0300)
diff-hl-dired.el

index 94723c4b7df5a84df549ea0d20785e294d233292..e27a3087fd8551a2584959c862f3da187cf1dd77 100644 (file)
                            (if (null value)
                                (push (cons dir type) dirs-alist)
                              (setcdr (assoc dir dirs-alist) 'change))))
-                     (push (cons file type) files-alist))
-                   ;; Process's finished, time to use the results.
-                   (unless (get-buffer-process diff-hl-dired-process-buffer)
-                     (diff-hl-dired-highlight-items (append dirs-alist
-                                                            files-alist))))))))
+                     (push (cons file type) files-alist)))))
+             ;; Process's finished, time to use the results.
+             (unless (get-buffer-process diff-hl-dired-process-buffer)
+               (diff-hl-dired-highlight-items (append dirs-alist
+                                                      files-alist)))))
          )))))
 
 (defun diff-hl-dired-highlight-items (alist)