Skip to content

Commit

Permalink
epkg-read-package: Find default inside magit diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Feb 12, 2024
1 parent 7f7137e commit 4a24534
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lisp/epkg.el
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,9 @@ to packages for which one of these predicates returns non-nil."
(and (derived-mode-p 'org-mode)
(looking-at "^[ \t]*| \\([^ ]+\\)")
(match-string 1))
(and (derived-mode-p 'magit-status-mode)
(looking-at "^[ \t]*[-+]| \\([^ ]+\\)")
(match-string 1))
(and-let* ((dir (seq-find
(lambda (dir)
(and (or (stringp dir)
Expand Down

0 comments on commit 4a24534

Please sign in to comment.