fix bug with choosing "/" from the directory navigator, change color of "/" prefix

svn: r3723
This commit is contained in:
Eli Barzilay 2006-07-16 10:22:04 +00:00
parent 3c80a10235
commit 0dba7be788

View File

@ -297,9 +297,9 @@
(unless (null? items)
(let ([j (+ i (string-length (caar items)))])
(when (cdar items)
(send edit change-style path-up-delta i j)
(unless (zero? i) (send edit change-style path-up-delta i j))
(send edit set-clickback i
(if (eq? i 0) j (add1 j)) ; inclucde the sep
(if (zero? i) j (add1 j)) ; inclucde the sep
(lambda _ (enter-text (cdar items)) (do-enter))))
(loop j (cdr items)))))
(send dir-text lock))
@ -430,7 +430,7 @@
[selections (send path-list get-selections)]
[many? (and multi? (equal? "" sel)
(<= 1 (length selections)))])
(cond [(and isdir? (not (equal? "" sel)))
(cond [(and isdir? (or (not (equal? "" sel)) (root? sel0)))
;; chose a directory -- go there
(set-dir path) (send* text* (erase) (select-all)) (set-ok?)]
[(and /? isfile?)