update packages
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
;; Copyright (C) 2015-2025 Free Software Foundation, Inc. -*- lexical-binding: t -*-
|
||||
;; Copyright (C) 2015-2026 Free Software Foundation, Inc. -*- lexical-binding: t -*-
|
||||
|
||||
;; Author: Jonathan Hayase <PythonNut@gmail.com>
|
||||
;; URL: https://github.com/dgutov/diff-hl
|
||||
@@ -42,7 +42,6 @@
|
||||
|
||||
(defun diff-hl-flydiff-changes-buffer (file backend &optional new-rev buffer)
|
||||
(setq buffer (or buffer " *diff-hl-diff*"))
|
||||
(setq diff-hl-flydiff-modified-tick (buffer-chars-modified-tick))
|
||||
(if new-rev
|
||||
(diff-hl-with-diff-switches
|
||||
(diff-hl-diff-against-reference file backend buffer new-rev))
|
||||
@@ -52,13 +51,16 @@
|
||||
(unless (or
|
||||
(not diff-hl-mode)
|
||||
(eq diff-hl-flydiff-modified-tick (buffer-chars-modified-tick))
|
||||
(not buffer-file-name)
|
||||
(file-remote-p default-directory)
|
||||
(not (file-exists-p buffer-file-name)))
|
||||
(let ((file (diff-hl--buffer-file-name)))
|
||||
(or (not file)
|
||||
(file-remote-p default-directory)
|
||||
(not (file-exists-p file)))))
|
||||
(setq diff-hl-flydiff-modified-tick (buffer-chars-modified-tick))
|
||||
(diff-hl-update)))
|
||||
|
||||
(defun diff-hl-flydiff/modified-p (_state)
|
||||
(buffer-modified-p))
|
||||
(defun diff-hl-flydiff/modified-p (state)
|
||||
(unless (memq state '(added missing nil))
|
||||
(buffer-modified-p)))
|
||||
|
||||
;;;###autoload
|
||||
(define-minor-mode diff-hl-flydiff-mode
|
||||
|
||||
Reference in New Issue
Block a user