Use default value when unpacking variable vector.

* geesh/environment.scm (getvar): Use 'dflt' when we have a vector but
'value' is '#f'.
This commit is contained in:
Timothy Sample 2018-12-31 11:03:30 -05:00
parent 64aa779315
commit c169a90753
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ well."
and @var{dflt} is provided, return @var{dflt}. Otherwise, return
@code{#f}."
(match (hash-ref *variables* name dflt)
(#(value _ _) value)
(#(value _ _) (or value dflt))
(value value)))
(define (setvar! name value)