File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -644,6 +644,10 @@ contents as they are (or would be) after applying the changes in NEW."
644644 " diff-hl--update-safe" )))
645645 (diff-hl--update)))
646646
647+ (defun diff-hl--update-buffer (buf )
648+ (with-current-buffer buf
649+ (diff-hl-update)))
650+
647651(defun diff-hl-with-editor-p (_dir )
648652 (bound-and-true-p with-editor-mode))
649653
@@ -745,7 +749,7 @@ Return a list of line overlays used."
745749 ; ; That will keep the the local value of <side>-margin-width, if any.
746750 (unless diff-hl-timer
747751 (setq diff-hl-timer
748- (run-with-idle-timer 0 nil #'diff-hl-update ))))
752+ (run-with-idle-timer 0 nil #'diff-hl-- update-buffer ( current-buffer ) ))))
749753
750754(defun diff-hl-add-highlighting (type shape &optional ovl )
751755 (let ((o (or ovl (make-overlay (point ) (point )))))
You can’t perform that action at this time.
0 commit comments