diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 03:35:43 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 03:39:45 +1200 |
commit | 0ae9c1d02ca1a3d3da5e936b1708fb8bbcc48f4a (patch) | |
tree | 5586b7d42f3e57846779131474420b21c585bab9 /vim/compiler/shellcheck.vim | |
parent | Merge branch 'release/v5.1.0' into develop (diff) | |
download | dotfiles-0ae9c1d02ca1a3d3da5e936b1708fb8bbcc48f4a.tar.gz dotfiles-0ae9c1d02ca1a3d3da5e936b1708fb8bbcc48f4a.zip |
Refine version check for :compiler scripts
The %:S modifier for shell escaping was added in 7.4.191, and the nicer
syntax for checking patch levels not much later in 7.4.237. Bring the
minimum version of Vim for the compiler scripts down just a bit, since
it's not too much more reading and can still stay on one line.
Diffstat (limited to 'vim/compiler/shellcheck.vim')
-rw-r--r-- | vim/compiler/shellcheck.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/compiler/shellcheck.vim b/vim/compiler/shellcheck.vim index f440a23d..004ad369 100644 --- a/vim/compiler/shellcheck.vim +++ b/vim/compiler/shellcheck.vim @@ -1,6 +1,6 @@ " :compiler support for shell script linting with ShellCheck " <https://www.shellcheck.net/> -if exists('current_compiler') || &compatible || v:version < 800 +if exists('current_compiler') || &compatible || !has('patch-7.4.191') finish endif let current_compiler = 'shellcheck' |