From fe1383d5e597e01dd52bf62bcc816f43ee07171e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 20 May 2019 17:00:29 +1200 Subject: Use nicer patch-checking syntax This syntax is supported for 7.4.237 and above. --- vim/after/ftplugin/sh.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'vim/after/ftplugin') diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index e7bd21dc..9afd5086 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -23,9 +23,7 @@ let b:undo_ftplugin .= '|unlet b:current_compiler b:sh_check_compiler' " Resort to g:is_posix for correct syntax on older runtime files " 8.1.257 updated the runtime files to include a fix for this -if exists('b:is_posix') - \ && (v:version < 800 - \ || v:version == 800 && !has('patch257')) +if exists('b:is_posix') && !has('patch-8.0.257') let is_posix = 1 endif -- cgit v1.2.3