fix some editor lock tracking

svn: r14614

original commit: 4141389b847687df4dc0d9d9141575f55c368338
This commit is contained in:
Matthew Flatt 2009-04-26 15:24:50 +00:00
parent 603e6d11fc
commit ef3cf1eab8

View File

@ -4187,16 +4187,16 @@
(let ([at-start? (eq? (mline-snip line) snip1)]
[at-end? (eq? (mline-last-snip line) snip2)]
[wl? write-locked?]
[fl flow-locked?])
[fl? flow-locked?])
(set! read-locked? #t)
(set! write-locked? #t)
(set! flow-locked? #t)
(set-snip-flags! snip2 (add-flag (snip->flags snip2) CAN-SPLIT))
(let ([naya (send snip2 merge-with snip1)])
(set! read-locked? #t)
(set! read-locked? #f)
(set! write-locked? wl?)
(set! flow-locked? wl?)
(set! flow-locked? fl?)
(if naya
(begin