Merge pull request #4 from rbgrouleff/fix_undefined_variable

Fix error if g:no_plugin_maps is not defined
This commit is contained in:
Rasmus Bang Grouleff 2018-04-12 12:53:17 +02:00 committed by GitHub
commit 36487a6ffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,6 @@ function! s:Bclose(bang, buffer)
execute wcurrent.'wincmd w' execute wcurrent.'wincmd w'
endfunction endfunction
command! -bang -complete=buffer -nargs=? Bclose call <SID>Bclose('<bang>', '<args>') command! -bang -complete=buffer -nargs=? Bclose call <SID>Bclose('<bang>', '<args>')
if !g:no_plugin_maps if !exists ("g:no_plugin_maps") || !g:no_plugin_maps
nnoremap <silent> <Leader>bd :Bclose<CR> nnoremap <silent> <Leader>bd :Bclose<CR>
endif endif