Load plugins only once in plug#load (#616)

When loading 'deoplete.nvim' for the 2nd time during InsertEnter
manually, the `s:dobufread` (or `s:lod` itself) prevents it to work
properly - likely because the plugin gets resourced.

Maybe there could be a way to force this (and reload plugins always),
but by default it seems to make sense to skip already loaded plugins.
This commit is contained in:
Daniel Hahler
2017-04-16 19:46:02 +02:00
committed by Junegunn Choi
parent 1d3c88292b
commit 9dcab48628
3 changed files with 23 additions and 13 deletions

View File

@@ -1128,6 +1128,7 @@ Execute (plug#helptags):
**********************************************************************
Execute (plug#load - invalid arguments):
call ResetPlug()
AssertEqual 0, plug#load()
AssertEqual 0, plug#load('non-existent-plugin')
AssertEqual 0, plug#load('non-existent-plugin', 'another-non-existent-plugin')