From 03919f1c03f89e17c90e398a7eaceabb21f1268c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 12 Nov 2017 23:58:43 +1300 Subject: Separate g:loaded/&cp tests from feat tests Keeping the tests at the beginning of plugins on one line without continuations is needed to work around &cpo-=C. --- vim/plugin/auto_undodir.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vim/plugin/auto_undodir.vim') diff --git a/vim/plugin/auto_undodir.vim b/vim/plugin/auto_undodir.vim index 9a686fb1..cf8d896a 100644 --- a/vim/plugin/auto_undodir.vim +++ b/vim/plugin/auto_undodir.vim @@ -5,7 +5,10 @@ " Author: Tom Ryder " License: Same as Vim itself " -if exists('g:loaded_auto_undodir') || &compatible || !has('persistent_undo') +if exists('g:loaded_auto_undodir') || &compatible + finish +endif +if !has('persistent_undo') finish endif let g:loaded_auto_undodir = 1 -- cgit v1.2.3