mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-15 14:51:01 -08:00
fix(debugger): wrong-number-of-arguments error
dape-breakpoint-save's sole argument is optional. Calls omitting it
would cause our advise to throw an arity error.
Amend: 52dbde017a
This commit is contained in:
parent
3c8240dfaa
commit
4b99e6f156
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@
|
|||
;; HACK: Otherwise, if `dape-default-breakpoints-file's parent directory
|
||||
;; doesn't exist, `dape-breakpoint-save' will throw an error.
|
||||
;; REVIEW: This should be upstreamed.
|
||||
(defadvice! +debugger--make-directory-a (file)
|
||||
(defadvice! +debugger--make-directory-a (&optional file)
|
||||
:before #'dape-breakpoint-save
|
||||
(make-directory (file-name-directory (or file dape-default-breakpoints-file)) t)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue