racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
448 stars 95 forks source link

Position off by one #414

Open sorawee opened 4 years ago

sorawee commented 4 years ago

Let [] indicates a selection. Consider:

#lang racket
(define[ ]a 1)
a

c-x m would trigger a renaming of a, even though it doesn't really select a.

Note that this is a problem with the start position only.

#lang racket
(define a[ ]1)
a

would not trigger a renaming of a.