Merge pull request #88 from magnostherobot/mtr/nopythonexit

Check for python support before queuing autocmd
This commit is contained in:
zah 2018-08-03 18:17:15 +03:00 committed by GitHub
commit d1c7e21661
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,8 +52,10 @@ endf
augroup NimVim
au!
au BufEnter log://nim call s:UpdateNimLog()
" au QuitPre * :py nimTerminateAll()
au VimLeavePre * :py nimTerminateAll()
if has("python3") || has("python")
" au QuitPre * :py nimTerminateAll()
au VimLeavePre * :py nimTerminateAll()
endif
augroup END
command! NimLog :e log://nim