aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-18 23:05:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-18 23:05:29 +1200
commitad436721d608c734f21a511b8b5b1b10619703a6 (patch)
treef2b5f23baa8b8e4a120d8be682f9d690c595ebf3
parentDefine Perl::Critic config files as .ini format (diff)
downloaddotfiles-ad436721d608c734f21a511b8b5b1b10619703a6.tar.gz
dotfiles-ad436721d608c734f21a511b8b5b1b10619703a6.zip
Adjust boolean condition for stridx()
-rw-r--r--vim/vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 71959b4d..4f98e844 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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