diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 01:54:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 01:54:26 +1200 |
commit | 0c91e0fb9ea53938bc552a13ed5201fb79887690 (patch) | |
tree | b8885560842d099992d46b9bf1d45e8d33b21869 | |
parent | Merge branch 'release/v5.24.0' into develop (diff) | |
download | dotfiles-0c91e0fb9ea53938bc552a13ed5201fb79887690.tar.gz dotfiles-0c91e0fb9ea53938bc552a13ed5201fb79887690.zip |
Restore simple comma blocking
-rw-r--r-- | vim/vimrc | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -89,11 +89,8 @@ endif " " So, if there's a comma, we just raise an error and end the script. " -" Similarly, the 'thesaurus' option, and possibly others, won't accept a path -" with a pipe in its name, so don't allow that, either. -" -if $MYVIM =~# '[,|]' - echoerr 'Illegal characters in $MYVIM path' +if stridx($MYVIM, ',') != -1 + echoerr '$MYVIM contains a comma, refusing to proceed' finish endif |