aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-05 01:08:39 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-05 01:08:39 +1300
commit47703aca40d5cd9126dbd3031b87ea8b535b38f4 (patch)
treef93db3c12c0e6a009405cba1c707cf36493e0fa5 /vim
parenta0b7081ce224503d1735874d28bd8d2271b5e2b8 (diff)
downloaddotfiles-47703aca40d5cd9126dbd3031b87ea8b535b38f4.tar.gz
dotfiles-47703aca40d5cd9126dbd3031b87ea8b535b38f4.zip
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.
Diffstat (limited to 'vim')
-rw-r--r--vim/autoload/detect_background.vim2
1 files changed, 1 insertions, 1 deletions
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, ';')