From 7f96ee19e09dca3765f17e3c4f470a66cd2bc465 Mon Sep 17 00:00:00 2001 From: Robby Findler Date: Wed, 30 Nov 2011 16:44:45 -0600 Subject: [PATCH] When opening a new file, first load the file into the definitions text before wiring up / initializing the new tab. This means that the file's name is not asked for, and thus a new "untitled" number is not allocated too early closes PR 12361 (and hopefully introduces no new ones) --- collects/drracket/private/unit.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collects/drracket/private/unit.rkt b/collects/drracket/private/unit.rkt index e387fea87f..6c5de3d15e 100644 --- a/collects/drracket/private/unit.rkt +++ b/collects/drracket/private/unit.rkt @@ -2790,8 +2790,8 @@ module browser threading seems wrong. (get-defs-tab-label defs #f)) 200)) (init-definitions-text new-tab) - (change-to-nth-tab (- (send tabs-panel get-number) 1)) (when filename (send defs load-file filename)) + (change-to-nth-tab (- (send tabs-panel get-number) 1)) (send ints initialize-console) (send tabs-panel set-selection (- (send tabs-panel get-number) 1)) (set! newest-frame this)