Azeirah / quippet

A plugin for the atom editor to easily create new snippets
MIT License
5 stars 3 forks source link

Uncaught TypeError: Cannot call method 'getSelection' of undefined #2

Closed lmartins closed 10 years ago

lmartins commented 10 years ago

After updating the plugin, which also changed the keyword assigned to the new snippet command, it now returns an error when opening the new snippet dialog: https://www.dropbox.com/s/hfay001339qfw5s/Screenshot%202014-07-01%2022.56.26.png

Azeirah commented 10 years ago

Ah, good find. My code assumes that you have an editor open for the automatic selection paste. This had nothing to do with the update by the way.

Thanks for the bug reports so far.

I'll added a check to see if an editor pane exists.

lmartins commented 10 years ago

Thank you @Azeirah for the updates.