fixes the way alt-enter in the drracket repl works so that it doesn't insert whitespace into the submitted expression
closes PR 11621
This commit is contained in:
parent
6c974f6c5f
commit
7a85e942a2
|
@ -2036,6 +2036,7 @@
|
|||
(start . >= . unread-start-point))
|
||||
(inner #t can-delete? start len)))
|
||||
|
||||
(inherit set-position)
|
||||
(define/override (on-local-char key)
|
||||
(let ([start (get-start-position)]
|
||||
[end (get-end-position)]
|
||||
|
@ -2048,7 +2049,8 @@
|
|||
[(and (insertion-point . <= . start)
|
||||
(= start end)
|
||||
(submit-to-port? key))
|
||||
(insert "\n")
|
||||
(insert "\n" (last-position) (last-position))
|
||||
(set-position (last-position) (last-position))
|
||||
(for-each/snips-chars
|
||||
unread-start-point
|
||||
(last-position)
|
||||
|
|
Loading…
Reference in New Issue
Block a user