when double clicking in a comment, fall back to word-based instead
of sexp-based selection closes PR 12439 original commit: 48772f2e405a7723f40397ccdbfdf1f646f8f9c6
This commit is contained in:
parent
c3fb9f60da
commit
705bdfbc34
|
@ -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