jedi#show_documentation: check len of g:jedi#documentation_command

This commit is contained in:
Daniel Hahler
2019-03-21 17:39:16 +01:00
committed by Dave Halter
parent 1f7e661d9d
commit d879d2f216

View File

@@ -377,7 +377,9 @@ function! jedi#show_documentation() abort
" quit comands
nnoremap <buffer> q ZQ
if len(g:jedi#documentation_command)
execute 'nnoremap <buffer> '.g:jedi#documentation_command.' ZQ'
endif
endfunction
" ------------------------------------------------------------------------