adjust the preferences setting for the module language auto-text
so that it deals with the trailing newline in a manner consistent with the way the rest of that code works
This commit is contained in:
parent
4535f5d8cc
commit
56effc21f9
|
@ -589,7 +589,7 @@
|
|||
(and (integer? i)
|
||||
(<= 1 i 255))))
|
||||
(not x))))
|
||||
(drr:set-default 'drracket:module-language:auto-text "#lang racket" string?)
|
||||
(drr:set-default 'drracket:module-language:auto-text "#lang racket\n" string?)
|
||||
|
||||
(let ([drs-handler-recent-items-super%
|
||||
(class (drracket:frame:basics-mixin
|
||||
|
|
|
@ -583,9 +583,8 @@
|
|||
[init-value ""]
|
||||
[callback
|
||||
(λ (tf evt)
|
||||
(define t (send tf get-editor))
|
||||
(preferences:set 'drracket:module-language:auto-text
|
||||
(send t get-text)))]))
|
||||
(get-auto-text)))]))
|
||||
|
||||
;; data associated with each item in listbox : boolean
|
||||
;; indicates if the entry is the default paths.
|
||||
|
|
Loading…
Reference in New Issue
Block a user