mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
handling syntactic closures in repl tab completion
This commit is contained in:
parent
b4ab726e8e
commit
82c5035b23
1 changed files with 3 additions and 1 deletions
|
@ -76,7 +76,9 @@
|
||||||
(lambda (w)
|
(lambda (w)
|
||||||
(and (>= (string-length w) len)
|
(and (>= (string-length w) len)
|
||||||
(equal? word (substring w 0 len))))
|
(equal? word (substring w 0 len))))
|
||||||
(map symbol->string (all-exports (interaction-environment)))))
|
(map symbol->string
|
||||||
|
(map identifier->symbol
|
||||||
|
(all-exports (interaction-environment))))))
|
||||||
(prefix-len (string-common-prefix-length candidates)))
|
(prefix-len (string-common-prefix-length candidates)))
|
||||||
(if (> prefix-len len)
|
(if (> prefix-len len)
|
||||||
(list (substring (car candidates) 0 prefix-len))
|
(list (substring (car candidates) 0 prefix-len))
|
||||||
|
|
Loading…
Add table
Reference in a new issue