fix(dired,vc-gutter): don't inhibit diff-hl-dired-mode
Dirvish uses the fringe for its vc-state diff, which isn't available in
TTY Emacs, so we still need `diff-hl-dired-mode` there.
Revert: a8ed6c9f7d
Ref: #6760
This commit is contained in:
parent
786dae5a5d
commit
d6a2e24a3e
1 changed files with 3 additions and 2 deletions
|
@ -69,8 +69,9 @@
|
|||
(defun +vc-gutter-enable-maybe-h ()
|
||||
"Conditionally enable `diff-hl-dired-mode' in dired buffers.
|
||||
Respects `diff-hl-disable-on-remote'."
|
||||
(unless (and (bound-and-true-p dirvish-override-dired-mode)
|
||||
(bound-and-true-p diff-hl-disable-on-remote)
|
||||
;; Neither `diff-hl-dired-mode' or `diff-hl-dired-mode-unless-remote'
|
||||
;; respect `diff-hl-disable-on-remote', so...
|
||||
(unless (and (bound-and-true-p diff-hl-disable-on-remote)
|
||||
(file-remote-p default-directory))
|
||||
(diff-hl-dired-mode +1))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue