fix(emacs/lean-option): handle lean-option-string when it's nil
This commit is contained in:
parent
11ff7b5d33
commit
2bdc415a34
1 changed files with 4 additions and 3 deletions
|
@ -21,9 +21,10 @@
|
|||
(string-join str-list "\n")))
|
||||
|
||||
(defun lean-option-string ()
|
||||
(--reduce (format "%s %s" acc it)
|
||||
(--map (format "-D %s=%s" (car it) (cdr it))
|
||||
lean-global-option-alist)))
|
||||
(when lean-global-option-alist
|
||||
(--reduce (format "%s %s" acc it)
|
||||
(--map (format "-D%s=%s" (car it) (cdr it))
|
||||
lean-global-option-alist))))
|
||||
|
||||
(defun lean-update-option-alist (name value)
|
||||
(let ((needle (assoc-string name lean-global-option-alist)))
|
||||
|
|
Loading…
Reference in a new issue