Galooshi / atom-import-js

Atom plugin for ImportJS
MIT License
36 stars 3 forks source link

Fixing imports with a selection and a non-selection import skips the non-selection import #1

Closed lencioni closed 8 years ago

lencioni commented 8 years ago

If I have a file that has two imports that need to be added, one with multiple possibilities and the other with a single match, after selecting the import from the list only the selected import is added while the one with a single match is skipped. If there are multiple imports to be selected, things work as expected.

I believe this is because we are passing the --word flag if only one selection needed to be made.