avoid 'up and 'same when detecting link destinations
Simplify complete paths before exploding, so that 'up and 'same will no show up for comparisons. Closes #133
This commit is contained in:
parent
f707394839
commit
0931c3577a
|
@ -2013,9 +2013,9 @@
|
|||
(loop (cdr path) (cdr root)))))))))
|
||||
|
||||
(define (from-root p d)
|
||||
(define c-p (path->complete-path p))
|
||||
(define c-p (simplify-path (path->complete-path p)))
|
||||
(define e-p (explode c-p))
|
||||
(define e-d (and d (explode (path->complete-path d))))
|
||||
(define e-d (and d (explode (simplify-path (path->complete-path d)))))
|
||||
(define p-in? (in-plt? e-p))
|
||||
(define d-in? (and d (in-plt? e-d)))
|
||||
(define (normalize p) (normal-case-path p))
|
||||
|
|
Loading…
Reference in New Issue
Block a user