Merge pull request #4 from rbgrouleff/fix_undefined_variable
Fix error if g:no_plugin_maps is not defined
This commit is contained in:
commit
36487a6ffd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user