Skip to content

Commit

Permalink
Don't error when revert-buffer-preserve-modes is not bound
Browse files Browse the repository at this point in the history
Resolves #210
  • Loading branch information
dgutov committed Jul 15, 2024
1 parent e264d13 commit f66345e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions diff-hl.el
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,7 @@ If any returns non-nil, `diff-hl-update' will run synchronously anyway."
(diff-hl-update))))

(defun diff-hl-after-revert ()
(defvar revert-buffer-preserve-modes)
(when revert-buffer-preserve-modes
(when (bound-and-true-p revert-buffer-preserve-modes)
(diff-hl-update)))

(defun diff-hl-diff-goto-hunk-1 (historic)
Expand Down

0 comments on commit f66345e

Please sign in to comment.