[neovim] 01/11: ftplugin/man: Finish early if &filetype is not man

James McCoy jamessan at debian.org
Sat Dec 24 21:14:13 UTC 2016


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch debian/sid
in repository neovim.

commit 6672b04e415b1263569756945a51103cff84a088
Author: James McCoy <jamessan at jamessan.com>
Date:   Sat Dec 3 21:12:31 2016 -0500

    ftplugin/man: Finish early if &filetype is not man
    
    Many people have `runtime ftplugin/man.vim` in their init file, as was
    required in Vim to have the `:Man` command generally available.
    7a4d069b removed the &filetype check, which caused these setups to
    always create a blank `man://` buffer.
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 runtime/ftplugin/man.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index b8acd90..63bafa1 100644
--- a/runtime/ftplugin/man.vim
+++ b/runtime/ftplugin/man.vim
@@ -1,7 +1,7 @@
 " Maintainer:          Anmol Sethi <anmol at aubble.com>
 " Previous Maintainer: SungHyun Nam <goweol at gmail.com>
 
-if exists('b:did_ftplugin')
+if exists('b:did_ftplugin') || &filetype !=# 'man'
   finish
 endif
 let b:did_ftplugin = 1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/neovim.git



More information about the pkg-vim-maintainers mailing list