diff options
-rw-r--r-- | plugin/toggle_option_flags.vim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugin/toggle_option_flags.vim b/plugin/toggle_option_flags.vim index 4021dd0..49142ed 100644 --- a/plugin/toggle_option_flags.vim +++ b/plugin/toggle_option_flags.vim @@ -25,7 +25,6 @@ endfunction function! s:Has(option, flag) " Horrible :execute to get the option's current setting into a variable - " (I couldn't get {curly braces} indirection to work) let l:current = '' execute 'let l:current = &' . a:option @@ -41,7 +40,7 @@ function! s:Has(option, flag) let l:search_value = l:current endif - " Return whether + " Return whether the flag appears in the value return stridx(l:search_value, l:search_flag) > -1 endfunction @@ -90,7 +89,7 @@ function! s:Toggle(option, flag, local) call s:Error('Unable to toggle '.a:option.' flag '.a:flag) endif - " Return value is whether we made a change + " Return whether we made a change return l:before != l:after endfunction |