aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/vim.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-04-08 11:32:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2014-04-08 11:32:42 +1200
commit9b64341b1fd3198344e1b8e13448924b9c65e3ef (patch)
tree105d807c991fa17bd5268cfcd9102e29a50f7290 /bash/bashrc.d/vim.bash
parentClarify explanation of prompts (diff)
downloaddotfiles-9b64341b1fd3198344e1b8e13448924b9c65e3ef.tar.gz
dotfiles-9b64341b1fd3198344e1b8e13448924b9c65e3ef.zip
Require at least one argument to vis function
Diffstat (limited to 'bash/bashrc.d/vim.bash')
-rw-r--r--bash/bashrc.d/vim.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/vim.bash b/bash/bashrc.d/vim.bash
index 03193c6e..c73ad841 100644
--- a/bash/bashrc.d/vim.bash
+++ b/bash/bashrc.d/vim.bash
@@ -15,7 +15,7 @@ vis() {
# Distinguish options from file arguments
endopts=0
- for arg in "$@" ; do
+ for arg in "${@:?}" ; do
if [[ $arg == -- ]] ; then
endopts=1
elif [[ $arg == -* ]] && ! ((endopts)) ; then