Skip to content

Commit bdb3641

Browse files
committed
diff-hl--when-done: Use add-function
So that 'diff-sentinel' is invoked anyway, when the buffer was created by 'diff-no-select' (the flydiff mode). #271
1 parent 311d131 commit bdb3641

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

diff-hl.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,9 @@ Return a list of line overlays used."
762762
((eq (process-status proc) 'signal))
763763
;; If a process is running, set the sentinel.
764764
((eq (process-status proc) 'run)
765-
(set-process-sentinel
766-
proc
765+
(add-function
766+
:after
767+
(process-sentinel proc)
767768
(lambda (proc _status)
768769
;; Delegate to the parent cond for decision logic.
769770
(diff-hl--when-done buffer get-value callback proc))))

0 commit comments

Comments
 (0)