add a test for undo-clickback repair
This commit is contained in:
parent
b0d909bd8f
commit
b0245395b7
|
@ -539,6 +539,16 @@
|
||||||
(send t end-edit-sequence)
|
(send t end-edit-sequence)
|
||||||
(send t undo)
|
(send t undo)
|
||||||
(st "" t get-text))
|
(st "" t get-text))
|
||||||
|
|
||||||
|
;; ----------------------------------------
|
||||||
|
;; undo and clickbacks
|
||||||
|
|
||||||
|
(let ([t (new text%)])
|
||||||
|
(send t set-max-undo-history 100)
|
||||||
|
(send t insert "abcdef")
|
||||||
|
(send t set-clickback 1 3 void)
|
||||||
|
(send t delete 0 5)
|
||||||
|
(send t undo))
|
||||||
|
|
||||||
;; ----------------------------------------
|
;; ----------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user