slightly broken searching -- in mid fix

original commit: a5f2fe64b04284ebfbcc73df05327709566ba0df
This commit is contained in:
Robby Findler 1997-01-05 21:14:36 +00:00
parent 2d80232354
commit 2623142f3f

View File

@ -562,7 +562,6 @@
(if (= direction 1)
(values add1 (lambda (x)
(cond
[#t flat]
[(and (not (= -1 flat))
(<= flat x))
flat]
@ -570,7 +569,6 @@
[else #f])))
(values sub1 (lambda (x)
(cond
[#t flat]
[(and (not (= -1 flat))
(<= x flat))
flat]
@ -600,6 +598,7 @@
(send media last-position))
-1
get-start case-sensitive?)))])
(printf "found snip: ~a ~a~n" current-pos embedded-pos)
(if (= -1 embedded-pos)
(loop (increment current-pos))
(values embedded embedded-pos))))]