]> code.delx.au - gnu-emacs-elpa/commitdiff
diff-hl-dired-highlight-items: Use the `single' type
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 5 Sep 2013 21:46:34 +0000 (00:46 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 5 Sep 2013 21:46:34 +0000 (00:46 +0300)
* Because having changes in several disjoint files is the most usual
  situation, and they look better this way.

* It doesn't look too good with several adjacent changed files. Maybe
  do some smart grouping preprocessing later.

diff-hl-dired.el

index bca753621e6dc0d82457292b7ae187acb1e22cbd..94723c4b7df5a84df549ea0d20785e294d233292 100644 (file)
@@ -88,7 +88,7 @@
         (when (and type (dired-goto-file-1
                          file (expand-file-name file) nil))
           (forward-line 0)
-          (diff-hl-add-highlighting type 'middle))))))
+          (diff-hl-add-highlighting type 'single))))))
 
 (defalias 'diff-hl-dired-clear 'diff-hl-remove-overlays)