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)
|
(and (integer? i)
|
||||||
(<= 1 i 255))))
|
(<= 1 i 255))))
|
||||||
(not x))))
|
(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%
|
(let ([drs-handler-recent-items-super%
|
||||||
(class (drracket:frame:basics-mixin
|
(class (drracket:frame:basics-mixin
|
||||||
|
|
|
@ -583,9 +583,8 @@
|
||||||
[init-value ""]
|
[init-value ""]
|
||||||
[callback
|
[callback
|
||||||
(λ (tf evt)
|
(λ (tf evt)
|
||||||
(define t (send tf get-editor))
|
|
||||||
(preferences:set 'drracket:module-language:auto-text
|
(preferences:set 'drracket:module-language:auto-text
|
||||||
(send t get-text)))]))
|
(get-auto-text)))]))
|
||||||
|
|
||||||
;; data associated with each item in listbox : boolean
|
;; data associated with each item in listbox : boolean
|
||||||
;; indicates if the entry is the default paths.
|
;; indicates if the entry is the default paths.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user