aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-06 22:18:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-06 22:18:22 +1200
commita79c1fe568c7d2043412321aff21f9185f8b18b6 (patch)
tree6dd734378bfdb4b9e09f74ce360f4b96704be485
parentCorrect pattern in version match string (diff)
downloaddotfiles-a79c1fe568c7d2043412321aff21f9185f8b18b6.tar.gz
dotfiles-a79c1fe568c7d2043412321aff21f9185f8b18b6.zip
Change a variable name
-rw-r--r--vim/autoload/vimrc.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/autoload/vimrc.vim b/vim/autoload/vimrc.vim
index f66a1ecf..e8efec31 100644
--- a/vim/autoload/vimrc.vim
+++ b/vim/autoload/vimrc.vim
@@ -28,15 +28,15 @@ endfunction
" Convenience version function check that should work with 7.0 or newer;
" takes strings like 7.3.251
-function! vimrc#Version(verstr) abort
+function! vimrc#Version(string) abort
" Throw toys if the string doesn't match the expected format
- if a:verstr !~# '^\d\+\.\d\+\.\d\+$'
- echoerr 'Invalid version string: '.a:verstr
+ if a:string !~# '^\d\+\.\d\+\.\d\+$'
+ echoerr 'Invalid version string: '.a:string
endif
" Split version string into major, minor, and patch level integers
- let [major, minor, patch] = split(a:verstr, '\.')
+ let [major, minor, patch] = split(a:string, '\.')
" Create a string like 801 from a version number 8.1 to compare it to
" the v:version integer