From a0b7081ce224503d1735874d28bd8d2271b5e2b8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 5 Nov 2017 01:07:40 +1300 Subject: Add vim/autoload to the lint-vim target This directory was created in commit 4c46c80, but its contents haven't been linted with `vint` until now. --- lint/vim.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lint/vim.sh b/lint/vim.sh index c370e177..64ac63ba 100644 --- a/lint/vim.sh +++ b/lint/vim.sh @@ -1,5 +1,6 @@ set -- \ vim/after \ + vim/autoload \ vim/config \ vim/ftdetect \ vim/ftplugin \ -- cgit v1.2.3 From 47703aca40d5cd9126dbd3031b87ea8b535b38f4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 5 Nov 2017 01:08:39 +1300 Subject: Add 'abort' attribute to autoload function `vint -s` says: > vim/autoload/detect_background.vim:16:1: Use the abort attribute for > functions in autoload (see Google VimScript Style Guide (Functions)) All right, then. Doesn't seem to break vim.tiny or Vim 6.1. --- vim/autoload/detect_background.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/autoload/detect_background.vim b/vim/autoload/detect_background.vim index 168640c3..e4fee199 100644 --- a/vim/autoload/detect_background.vim +++ b/vim/autoload/detect_background.vim @@ -13,7 +13,7 @@ endif let g:loaded_detect_background = 1 " Declare autoload function for 'background' set -function! detect_background#DetectBackground() +function! detect_background#DetectBackground() abort " Split up the value of $COLORFGBG (if any) by semicolons let l:colorfgbg = split($COLORFGBG, ';') -- cgit v1.2.3