Skip to content

Commit c19da4d

Browse files
authored
Revert "Fix dap--put-if-absent to allow unsetting keys (#529)" (#534)
This reverts commit a18f29e.
1 parent a18f29e commit c19da4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dap-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ has succeeded."
377377

378378
(defmacro dap--put-if-absent (config key form)
379379
"Update KEY to FORM if KEY does not exist in plist CONFIG."
380-
`(let ((c ,config)) (if (plist-member c ,key) c (plist-put c ,key ,form))))
380+
`(plist-put ,config ,key (or (plist-get ,config ,key) ,form)))
381381

382382
(defun dap--completing-read (prompt collection transform-fn &optional predicate
383383
require-match initial-input

0 commit comments

Comments
 (0)