fix(lib): doom-debug-mode forgetting initial values

Of the variables that it changes (see doom-debug-variables).
This commit is contained in:
Henrik Lissner 2022-08-07 18:59:21 +02:00
parent 48e54d3d48
commit 034ade0468
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -44,7 +44,7 @@ symbol and CDR is the value to set it to when `doom-debug-mode' is activated.")
(set-default
var (if (not enabled)
(prog1 (get var 'initial-value)
(put 'x 'initial-value nil))
(put var 'initial-value nil))
(put var 'initial-value (symbol-value var))
val))
(add-to-list 'doom-debug--undefined-vars var))))