diff options
author | dm1try <me@dmitry.it> | 2018-09-01 12:42:43 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-09-01 11:42:43 +0200 |
commit | 71bb4fd4814dd3b932f9e595611172bee178de34 (patch) | |
tree | b29259c154a4b3c7d76fc2d51abea93ca6551216 | |
parent | e30ccd56d9543afd5e66feec984a9dc8bc6be38e (diff) | |
download | rneovim-71bb4fd4814dd3b932f9e595611172bee178de34.tar.gz rneovim-71bb4fd4814dd3b932f9e595611172bee178de34.tar.bz2 rneovim-71bb4fd4814dd3b932f9e595611172bee178de34.zip |
man.vim: guard against reload (#8940)
Some plugins attempt to reload autoloaded scripts.
Use a guard to prevent this.
fix #8939
-rw-r--r-- | runtime/autoload/man.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index 77ccbdf888..7385862c0b 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -1,5 +1,10 @@ " Maintainer: Anmol Sethi <anmol@aubble.com> +if exists('s:loaded_man') + finish +endif +let s:loaded_man = 1 + let s:find_arg = '-w' let s:localfile_arg = v:true " Always use -l if possible. #6683 let s:section_arg = '-s' |