original commit: 66b36519c8735739e56678ffbf939069c1dcca8c
This commit is contained in:
Robby Findler 1999-02-16 16:18:47 +00:00
parent 5ebcb7bf53
commit 455a0456e6

View File

@ -362,16 +362,12 @@
; look for letter at beginning of a filename
[(char? code)
(letrec
([loop
(lambda (pos)
(unless
(>= pos num-items)
(let ([first-char (string-ref (get-string pos) 0)])
(if (char=? code first-char)
(set-selection-and-edit pos)
(loop (add1 pos))))))])
(loop (add1 curr-pos)))]
(let loop ([pos (add1 curr-pos)])
(unless (>= pos num-items)
(let ([first-char (string-ref (get-string pos) 0)])
(if (char=? code first-char)
(set-selection-and-edit pos)
(loop (add1 pos))))))]
; movement keys