From c93eace50b2a959af38641da66375982876c7262 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 30 May 2020 01:32:33 +1200 Subject: Use :function! and `abort` in autoload --- vim/autoload/detect_indent.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/autoload/detect_indent.vim b/vim/autoload/detect_indent.vim index 28d379c3..71a43e87 100644 --- a/vim/autoload/detect_indent.vim +++ b/vim/autoload/detect_indent.vim @@ -1,10 +1,10 @@ " Numeric comparison function to sort in a Vim v7.0 compatible way -function s:CompareNumeric(a, b) +function! s:CompareNumeric(a, b) abort return a:a > a:b ? 1 : -1 endfunction " Entry point for plugin -function detect_indent#() abort +function! detect_indent#() abort " For spaces, we count both the total space-indented lines, and also the " count of lines indexed by space count, so that if we need to, we can -- cgit v1.2.3