fixing bug in chained keys

This commit is contained in:
Alex Shinn 2013-06-20 23:29:07 +09:00
parent b4ea0a437f
commit 6f1c038989

View file

@ -202,9 +202,11 @@
(define (conf-get-cell config key) (define (conf-get-cell config key)
(cond (cond
((pair? key) ((pair? key)
(if (null? (cdr key)) (cond
(conf-get-cell config (car key)) ((null? (cdr key)) (conf-get-cell config (car key)))
(any (lambda (x) (assq-chain key x)) config))) ((assq-chain key (conf-alist config)))
((conf-parent config) => (lambda (p) (conf-get-cell p key)))
(else #f)))
(else (else
(let search ((config config)) (let search ((config config))
(and config (and config