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

This commit is contained in:
Daniel Hahler authored and Dave Halter committed 2019-03-22 12:35:43 +01:00
1 parent 1f7e661d9d
commit d879d2f216
1 file changed
+3 -1
+3 -1
View File
@@ -377,7 +377,9 @@ function! jedi#show_documentation() abort
" quit comands " quit comands
nnoremap <buffer> q ZQ nnoremap <buffer> q ZQ
execute 'nnoremap <buffer> '.g:jedi#documentation_command.' ZQ' if len(g:jedi#documentation_command)
execute 'nnoremap <buffer> '.g:jedi#documentation_command.' ZQ'
endif
endfunction endfunction
" ------------------------------------------------------------------------ " ------------------------------------------------------------------------