aki77 / atom-expand-region

expanding selection
https://atom.io/packages/expand-region
MIT License
89 stars 9 forks source link

Incorrect expansion at end of quoted text #15

Closed rahatarmanahmed closed 7 years ago

rahatarmanahmed commented 7 years ago

Open a tab and copy this in:

('abc')

("def")

('abc')

("def")

Put your cursor between c' or f" and try to expand. Instead of expanding to select abc or def, it selects between the quote next to the cursor and the next matching quote a couple lines down.

rahatarmanahmed commented 7 years ago

The issue is in findOpeningQuote for this particular case. Not entirely sure how to fix w/o breaking other behavior.