aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-06 11:57:58 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-06 11:57:58 +1300
commit1a805f6d50d471751fce4eb98c6ce8ea9443c13a (patch)
tree346d90548f875dfa90666d4b9cdaaeddd241167d /vim/plugin
parentEscape option value assign correctly (diff)
downloaddotfiles-1a805f6d50d471751fce4eb98c6ce8ea9443c13a.tar.gz
dotfiles-1a805f6d50d471751fce4eb98c6ce8ea9443c13a.zip
Use strlen() instead of len()
strlen() is older, and also more specific to what we want to do. len() just happens to work on strings, but was introduced for counting Lists and Dictionaries.
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/toggle_option_flag.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/plugin/toggle_option_flag.vim b/vim/plugin/toggle_option_flag.vim
index 809e1f53..da9a6110 100644
--- a/vim/plugin/toggle_option_flag.vim
+++ b/vim/plugin/toggle_option_flag.vim
@@ -39,7 +39,7 @@ function! s:Toggle(option, flag, local)
" necessity be a delimited option. I think all of those in VimL are
" comma-separated. Extend the pattern and current setting so that they'll
" still match at the start and end.
- if len(a:flag) > 1
+ if strlen(a:flag) > 1
let l:flag_pattern = ',' . l:flag_pattern . ','
let l:current = ',' . l:current . ','
endif