Closed pablomayobre closed 7 years ago
LuaCompleteRcProvider.getOptions returns previousOptions when the request.editor.getBuffer().getPath() is null (which is the case for unsaved files).
LuaCompleteRcProvider.getOptions
previousOptions
request.editor.getBuffer().getPath()
null
This fixes issue #11 where path.dirname fails due to the argument being null instead of a valid path
path.dirname
Hi. Thanks for this PR. Will merge this and release
LuaCompleteRcProvider.getOptions
returnspreviousOptions
when therequest.editor.getBuffer().getPath()
isnull
(which is the case for unsaved files).This fixes issue #11 where
path.dirname
fails due to the argument beingnull
instead of a valid path