when double clicking in a comment, fall back to word-based instead

of sexp-based selection

closes PR 12439
This commit is contained in:
Robby Findler 2011-12-12 14:44:28 -06:00
parent 2ed8023b36
commit 48772f2e40

View File

@ -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