diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-06 22:18:22 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-06 22:18:22 +1200 |
commit | a79c1fe568c7d2043412321aff21f9185f8b18b6 (patch) | |
tree | 6dd734378bfdb4b9e09f74ce360f4b96704be485 /vim | |
parent | Correct pattern in version match string (diff) | |
download | dotfiles-a79c1fe568c7d2043412321aff21f9185f8b18b6.tar.gz dotfiles-a79c1fe568c7d2043412321aff21f9185f8b18b6.zip |
Change a variable name
Diffstat (limited to 'vim')
-rw-r--r-- | vim/autoload/vimrc.vim | 8 |
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 |