Skip to content

Commit 6296220

Browse files
committed
Try again
1 parent 4edb7d9 commit 6296220

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

diff-hl.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ buffer will show the position corresponding to its current line."
917917
(error "Directory is not version controlled"))
918918
(setq fileset (or fileset (vc-deduce-fileset)))
919919
(static-if (< emacs-major-version 28)
920-
(vc-maybe-buffer-sync)
920+
(when buffer-file-name (vc-buffer-sync t))
921921
(vc-buffer-sync-fileset fileset t))
922922
(let* ((line (line-number-at-pos)))
923923
(vc-diff-internal

0 commit comments

Comments
 (0)