From 71bb4fd4814dd3b932f9e595611172bee178de34 Mon Sep 17 00:00:00 2001 From: dm1try Date: Sat, 1 Sep 2018 12:42:43 +0300 Subject: [PATCH] man.vim: guard against reload (#8940) Some plugins attempt to reload autoloaded scripts. Use a guard to prevent this. fix #8939 --- runtime/autoload/man.vim | 5 +++++ 1 file changed, 5 insertions(+) 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 +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'