vim-maktaba icon indicating copy to clipboard operation
vim-maktaba copied to clipboard

maktaba#plugin#Install('nonexistent/path/') should throw an error

Open dbarnett opened this issue 11 years ago • 0 comments

Calling maktaba#plugin#Install('nonexistent/path/') to install nonexistent plugin paths actually succeeds, registering and returning a plugin object:

:echo maktaba#plugin#Install('nonexistent/path/')
{'HasDir': function('maktaba#plugin#HasDir'), 'flags': {}, …}
:echo maktaba#plugin#IsRegistered('path')
1

Seems like it should throw NotFound or something.

dbarnett avatar Jan 18 '14 21:01 dbarnett