aboutsummaryrefslogtreecommitdiff
path: root/vim/compiler/ksh.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 03:35:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 03:39:45 +1200
commit0ae9c1d02ca1a3d3da5e936b1708fb8bbcc48f4a (patch)
tree5586b7d42f3e57846779131474420b21c585bab9 /vim/compiler/ksh.vim
parentMerge branch 'release/v5.1.0' into develop (diff)
downloaddotfiles-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/ksh.vim')
-rw-r--r--vim/compiler/ksh.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/compiler/ksh.vim b/vim/compiler/ksh.vim
index 9ee21748..b8ea51a8 100644
--- a/vim/compiler/ksh.vim
+++ b/vim/compiler/ksh.vim
@@ -1,5 +1,5 @@
" :compiler support for Korn shell syntax checking with `ksh -n`
-if exists('current_compiler') || &compatible || v:version < 800
+if exists('current_compiler') || &compatible || !has('patch-7.4.191')
finish
endif
let current_compiler = 'ksh'