diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-06 11:57:58 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-06 11:57:58 +1300 |
commit | 1a805f6d50d471751fce4eb98c6ce8ea9443c13a (patch) | |
tree | 346d90548f875dfa90666d4b9cdaaeddd241167d /vim/plugin | |
parent | Escape option value assign correctly (diff) | |
download | dotfiles-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.vim | 2 |
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 |