mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-14 21:42:46 +08:00
Handle wrong rtp more gracefully
If the runtimepath has been set incorrectly and the autoload file is getting loaded by something, then the code won't be able to load the "plugin" file. Print a warning message and stop loading the file instead of throwing lots of errors.
This commit is contained in:
parent
8a8e85436d
commit
c6b473f559
|
@ -28,6 +28,11 @@ if exists(':Tagbar') == 0
|
|||
runtime plugin/tagbar.vim
|
||||
endif
|
||||
|
||||
if exists(':Tagbar') == 0
|
||||
echomsg 'Tagbar: Could not load plugin code, check your runtimepath!'
|
||||
finish
|
||||
endif
|
||||
|
||||
" Basic init {{{2
|
||||
|
||||
redir => s:ftype_out
|
||||
|
|
Loading…
Reference in New Issue
Block a user