racket/gui: correct undo array resize for Emacs-style undo
original commit: ce63c5b75f7e66ae5a26d9a21e1877fb3e4cb70e
This commit is contained in:
parent
8c45433983
commit
4040e4881d
|
@ -899,7 +899,10 @@
|
|||
(size . < . max-undos)
|
||||
emacs-style-undo?)
|
||||
;; make more room
|
||||
(let* ([s (min (* size 2) (if (eq? max-undos 'forever) (* size 2) max-undos))]
|
||||
(let* ([s (min (* size 2) (if (or (eq? max-undos 'forever)
|
||||
emacs-style-undo?)
|
||||
(* size 2)
|
||||
max-undos))]
|
||||
[naya (make-vector s #f)])
|
||||
(for ([j (in-range size)])
|
||||
(vector-set! naya j (vector-ref c (modulo (+ start j) size))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user