when double clicking in a comment, fall back to word-based instead
of sexp-based selection closes PR 12439
This commit is contained in:
parent
2ed8023b36
commit
48772f2e40
|
@ -1375,7 +1375,7 @@
|
||||||
(define token (send text classify-position click-pos))
|
(define token (send text classify-position click-pos))
|
||||||
(define-values (start end)
|
(define-values (start end)
|
||||||
(cond
|
(cond
|
||||||
[(equal? token 'string) (word-based)]
|
[(memq token '(string comment)) (word-based)]
|
||||||
[(and (equal? token 'other)
|
[(and (equal? token 'other)
|
||||||
(let-values ([(start end) (send text get-token-range click-pos)])
|
(let-values ([(start end) (send text get-token-range click-pos)])
|
||||||
(and start
|
(and start
|
||||||
|
|
Loading…
Reference in New Issue
Block a user