b:vars take precedence over g:vars in report.

This commit is contained in:
Israel Chauca Fuentes
2010-09-30 18:50:52 -05:00
parent d2e896fbe1
commit f72ffe3c12

View File

@@ -441,7 +441,7 @@ function! delimitMate#TestMappings() "{{{
let options = sort(keys(delimitMate#OptionsList())) let options = sort(keys(delimitMate#OptionsList()))
let optoutput = ['delimitMate Report', '==================', '', '* Options: (-) unset, (g) global, (b) buffer',''] let optoutput = ['delimitMate Report', '==================', '', '* Options: (-) unset, (g) global, (b) buffer','']
for option in options for option in options
exec 'call add(optoutput, ''('.(exists('g:delimitMate_'.option) ? 'g' : exists('b:delimitMate_'.option) ? 'b' : '-').') delimitMate_''.option.'' = ''.string(b:_l_delimitMate_'.option.'))' exec 'call add(optoutput, ''('.(exists('b:delimitMate_'.option) ? 'b' : exists('g:delimitMate_'.option) ? 'g' : '-').') delimitMate_''.option.'' = ''.string(b:_l_delimitMate_'.option.'))'
endfor endfor
call append(line('$'), optoutput + ['--------------------','']) call append(line('$'), optoutput + ['--------------------',''])