Skip to content

Commit

Permalink
correct pcase
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharhero committed Mar 9, 2024
1 parent 6f94fbb commit 530709d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pet.el
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ If the file was deleted or renamed, remove the file's watcher,
and delete the file entry from CACHE-VAR and
`pet-watched-config-files'."
(lambda (event)
(pcase-let ((`(,_ ,action ,file) event))
(pcase-let ((`(,_ ,action ,file . ,_) event))
(pcase action
((or 'deleted 'renamed)
(file-notify-rm-watch (assoc-default file pet-watched-config-files))
Expand Down

0 comments on commit 530709d

Please sign in to comment.