Skip to content

Commit

Permalink
fixes problems with module browser when the file in the definitions w…
Browse files Browse the repository at this point in the history
…indow isn't saved

closes racket/racket#4889
  • Loading branch information
rfindler committed Jan 2, 2024
1 parent 2166917 commit 718c57b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,7 @@

(define (path->pkg-as-string filename path->pkg-cache)
(cond
[(not filename) sc-unknown-pkg]
[(path->pkg filename #:cache path->pkg-cache)
=> values]
[(is-in-main-collects? filename)
Expand Down
2 changes: 1 addition & 1 deletion drracket/drracket/private/module-browser.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
(current-output-port (swallow-specials original-output-port))
(current-error-port (swallow-specials original-error-port))
(current-load-relative-directory #f)
(current-directory init-dir)
(when init-dir (current-directory init-dir))
(error-display-handler (λ (str exn)
(set! error-str str)
(when (exn? exn)
Expand Down

0 comments on commit 718c57b

Please sign in to comment.