ui/vc-gutter: switch git-gutter order
This change checks whether a file is remote before checking whether it's a version controlled repo, rather than the other way around. Gives a slight speed improvement to Tramp.
This commit is contained in:
parent
c82f71e7fe
commit
2107e3caaf
1 changed files with 2 additions and 2 deletions
|
@ -25,9 +25,9 @@ to the right fringe.")
|
||||||
(defun +version-control|git-gutter-maybe ()
|
(defun +version-control|git-gutter-maybe ()
|
||||||
"Enable `git-gutter-mode' in non-remote buffers."
|
"Enable `git-gutter-mode' in non-remote buffers."
|
||||||
(when (and buffer-file-name
|
(when (and buffer-file-name
|
||||||
(vc-backend buffer-file-name)
|
|
||||||
(or +vc-gutter-in-remote-files
|
(or +vc-gutter-in-remote-files
|
||||||
(not (file-remote-p buffer-file-name))))
|
(not (file-remote-p buffer-file-name)))
|
||||||
|
(vc-backend buffer-file-name))
|
||||||
(if (display-graphic-p)
|
(if (display-graphic-p)
|
||||||
(progn
|
(progn
|
||||||
(require 'git-gutter-fringe)
|
(require 'git-gutter-fringe)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue