original commit: 07e50bebd47707b280674a8618a7757c038686de
This commit is contained in:
Robby Findler 2002-07-23 22:58:46 +00:00
parent 60a7f665dc
commit ebbe1dfc45

View File

@ -225,12 +225,18 @@
(define (open-recent-list-item recent-list-item)
(let* ([filename (car recent-list-item)]
[start (cadr recent-list-item)]
[end (caddr recent-list-item)]
[fr (edit-file filename)])
[end (caddr recent-list-item)])
(cond
[(file-exists? filename)
(let ([fr (edit-file filename)])
(when (is-a? fr frame:open-here<%>)
(let ([ed (send fr get-open-here-editor)])
(when (equal? (send ed get-filename) filename)
(send ed set-position start end))))))
(send ed set-position start end)))))]
[else
(message-box (string-constant error)
(format (string-constant cannot-open-because-dne)
filename))])))
;; show-recent-items-window : -> void
(define (show-recent-items-window)