aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-09 01:54:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-09 01:54:26 +1200
commit0c91e0fb9ea53938bc552a13ed5201fb79887690 (patch)
treeb8885560842d099992d46b9bf1d45e8d33b21869
parentMerge branch 'release/v5.24.0' into develop (diff)
downloaddotfiles-0c91e0fb9ea53938bc552a13ed5201fb79887690.tar.gz
dotfiles-0c91e0fb9ea53938bc552a13ed5201fb79887690.zip
Restore simple comma blocking
-rw-r--r--vim/vimrc7
1 files changed, 2 insertions, 5 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 1d436cd5..4108ede0 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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