fix a bug in highlight-range exposed by the contour window
closes PR 13488 related to PR 13491
This commit is contained in:
parent
12ebfa2cf4
commit
deac3fa2b3
|
@ -377,19 +377,13 @@
|
|||
(define color (if (is-a? in-color color%)
|
||||
in-color
|
||||
(send the-color-database find-color in-color)))
|
||||
(define found-one? #f)
|
||||
(unhighlight-ranges
|
||||
(λ (r-start r-end r-color r-caret-space? r-style r-adjust-on-insert/delete? r-key)
|
||||
(cond
|
||||
[found-one? #f]
|
||||
[(and (equal? start r-start)
|
||||
(equal? end r-end)
|
||||
(equal? color r-color)
|
||||
(equal? caret-space? r-caret-space?)
|
||||
(equal? style r-style))
|
||||
(set! found-one? #t)
|
||||
#t]
|
||||
[else #f]))))
|
||||
(and (equal? start r-start)
|
||||
(equal? end r-end)
|
||||
(equal? color r-color)
|
||||
(equal? caret-space? r-caret-space?)
|
||||
(equal? style r-style)))))
|
||||
|
||||
(define/public (unhighlight-ranges/key key)
|
||||
(unhighlight-ranges
|
||||
|
|
Loading…
Reference in New Issue
Block a user