From 200b5154a919ecab27154e58989d23fc237f1018 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 4 Jun 2018 22:43:53 +1200 Subject: Use correct function for function existence check --- vim/ftplugin/markdown/autoformat.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/ftplugin/markdown/autoformat.vim b/vim/ftplugin/markdown/autoformat.vim index 3f620691..80bd034c 100644 --- a/vim/ftplugin/markdown/autoformat.vim +++ b/vim/ftplugin/markdown/autoformat.vim @@ -18,7 +18,7 @@ endif " * Longer than 'textwidth' " * Contains at least one space (not an unsplittable line) " * Not a code block (indented with at least four spaces) -if !has('*s:Load') +if !exists('*s:Load') function! s:Load() abort let l:width = &textwidth ? &textwidth : 79 let l:count = 0 @@ -41,7 +41,7 @@ endif call s:Load() " Suspend auto-formatting when in a code block (four-space indent) -if !has('*s:Line') +if !exists('*s:Line') function! s:Line() abort if getline('.') =~# '\m^ ' if &formatoptions =~# '\ma' @@ -62,7 +62,7 @@ augroup ftplugin_markdown_autoformat augroup END " Suspend auto-format when pasting anything with a linebreak -if !has('*s:Put') +if !exists('*s:Put') function! s:Put(above) abort let l:suspended = 0 if &formatoptions =~# '\ma' && getreg() =~# '\m\n' -- cgit v1.2.3