We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cd1e2a commit f6caa2aCopy full SHA for f6caa2a
gui-lib/framework/private/text-normalize-paste.rkt
@@ -105,12 +105,13 @@
105
(set! ask? #f)
106
(unless (ask-normalize?) (abort)))
107
(define snip-pos (get-snip-position snip))
108
- (delete snip-pos (+ snip-pos (string-length old)))
109
(set! changes-to-make
110
- (cons (λ () (insert new snip-pos snip-pos #f))
+ (cons (λ ()
+ (delete snip-pos (+ snip-pos (string-length old)))
111
+ (insert new snip-pos snip-pos #f))
112
changes-to-make))))
113
(loop prev-snip))))
- (for ([change (in-list changes-to-make)])
114
+ (for ([change (in-list (reverse changes-to-make))])
115
(change)))))
116
117
(super-new))))
0 commit comments