diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-18 23:05:29 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-18 23:05:29 +1200 |
commit | ad436721d608c734f21a511b8b5b1b10619703a6 (patch) | |
tree | f2b5f23baa8b8e4a120d8be682f9d690c595ebf3 /vim/vimrc | |
parent | Define Perl::Critic config files as .ini format (diff) | |
download | dotfiles-ad436721d608c734f21a511b8b5b1b10619703a6.tar.gz dotfiles-ad436721d608c734f21a511b8b5b1b10619703a6.zip |
Adjust boolean condition for stridx()
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -130,7 +130,7 @@ endif " :execute abstraction, but it's not really worth the extra complexity for " such a niche situation. " -if stridx($MYVIM, ',') != -1 +if stridx($MYVIM, ',') >= 0 echoerr 'Illegal comma in user runtime path' finish endif @@ -149,7 +149,7 @@ endif " " <https://github.com/vim/vim/releases/tag/v7.1.055> " -if stridx($MYVIM, '\') != -1 +if stridx($MYVIM, '\') >= 0 \ && (v:version < 701 || v:version == 701 && !has('patch55')) echoerr 'Illegal backslash in user runtime path on Vim < v7.1.055' finish |