diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-04 21:47:47 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-04 21:48:01 +1300 |
commit | 3c59126631f390691420f947bc06335f1f1e6834 (patch) | |
tree | 3c64c327a2708be1aa58b6c1f4b5aa65178412c8 /vim/plugin/toggle_option_flag.vim | |
parent | Merge branch 'release/v0.7.0' (diff) | |
download | dotfiles-3c59126631f390691420f947bc06335f1f1e6834.tar.gz dotfiles-3c59126631f390691420f947bc06335f1f1e6834.zip |
Use spaces around concat dots in VimL consistently
Diffstat (limited to 'vim/plugin/toggle_option_flag.vim')
-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 10b4fe7a..8e10165a 100644 --- a/vim/plugin/toggle_option_flag.vim +++ b/vim/plugin/toggle_option_flag.vim @@ -30,7 +30,7 @@ if has('eval') && has('user_commands') " Use eval() to assign -= or += to l:op for the option toggle " (I couldn't get {curly braces} indirection to work) let l:op = '' - execute 'let l:op = &'.a:option.' =~# a:flag ? "-=" : "+="' + execute 'let l:op = &' . a:option . ' =~# a:flag ? "-=" : "+="' " Use eval() to perform the option toggle and then print the value execute l:set . ' ' . a:option . l:op . a:flag . ' ' . a:option . '?' |