From 995e2221ec15507b44ec7a2a240b6a58ddd27a82 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 9 May 2001 18:10:21 +0000 Subject: [PATCH] In PROMPT-FOR-STRING-TABLE-NAME, verifier must no assume that STRING-TABLE-GET will return false value only when key isn't in table. --- v7/src/edwin/prompt.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/v7/src/edwin/prompt.scm b/v7/src/edwin/prompt.scm index 7a6e9f617..1f4db8961 100644 --- a/v7/src/edwin/prompt.scm +++ b/v7/src/edwin/prompt.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: prompt.scm,v 1.194 2001/05/08 21:08:36 cph Exp $ +;;; $Id: prompt.scm,v 1.195 2001/05/09 18:10:21 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-2001 Massachusetts Institute of Technology ;;; @@ -271,7 +271,9 @@ (lambda (string) (string-table-completions string-table string)) (lambda (string) - (string-table-get string-table string)) + (let ((default (list 'DEFAULT))) + (not (eq? (string-table-get string-table string default) + default)))) 'CASE-INSENSITIVE-COMPLETION? (string-table-ci? string-table) options)) -- 2.25.1