dapetcu21 / atom-autocomplete-lua

Extensible autocomplete+ provider for Lua
35 stars 6 forks source link

LuaCompleteRcProvider skips unsaved files #14

Closed pablomayobre closed 7 years ago

pablomayobre commented 7 years ago

LuaCompleteRcProvider.getOptions returns previousOptions when the request.editor.getBuffer().getPath() is null (which is the case for unsaved files).

This fixes issue #11 where path.dirname fails due to the argument being null instead of a valid path

dapetcu21 commented 7 years ago

Hi. Thanks for this PR. Will merge this and release